Skip to content
Advertisement

Make element scroll slower (Parallax)

I have an element on my page absolutely positioned. Im trying to write a snippet of jQuery to make that element scroll at a slower rate than the rest of the elements on the page. I’ve written this so far but cannot seem to get it too work at all. Has anybody experience with this and if so would you

How do website heatmaps get accurate data?

There are services like crazyegg.com that show you where visitors are resting their mouse cursors on your web page. My question is, given that people have different screen widths how can they be sure that my x coordinate is the same position on the page as another persons x coordinate? Meaning, two people may have the same mouse x coordinates,

Javascript sort function. Sort by First then by Second

I have an array of objects to sort. Each object has two parameters: Strength and Name I want to sort first by Strength and then by name alphabetically. I am using the following code to sort by the first parameter. How do I sort then by the second? Thanks for your help. (I am using Array.sort() with the aforementioned sortF

Open new window on background div click

I am using CSS to apply a background image to a div tag that wraps all of the content on a website. And the CSS id with the background property… PROBLEM: I’m trying to figure out how to open a new browser window to a different URL whenever the background image is clicked upon. I have tried doing this using

How to communicate between iframe and the parent site?

The website in the iframe isn’t located in the same domain, but both are mine, and I would like to communicate between the iframe and the parent site. Is it possible? Answer With different domains, it is not possible to call methods or access the iframe’s content document directly. You have to use cross-document messaging. parent -> iframe For example

Advertisement