PDA

View Full Version : Image Trail Script Responsive Image



jundo12
01-12-2016, 09:27 PM
1) Script Title: Image Trail Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex13/trailer.htm

3) Describe problem: The script actually generates little colored circles that follow the cursor around. I decided to instead only have one image of my own, follow the cursor. However, it's not responsive. is there a little snippet of javascript that could be added to make the image/images be responsive?

Thanks in advance.

oh and by the way. what part of the script tells the browser to display the first circle x amount of pixels away from the cursor?

Beverleyh
01-13-2016, 06:54 AM
Not responsive? I think, to be more precise, you meant that it doesn't respond to touch, which makes sense because this script is around 14 years old.

This is a really old novelty script and not something you tend to see on the web today. You might be able to search for something like "touch friendly custom cursor" and see if anything comes up from that.

Alternatively you could try hiring a developer to write such a script for you. http://www.dynamicdrive.com/forums/forumdisplay.php?29-DD-scripts-Paid-Help or http://www.dynamicdrive.com/forums/forumdisplay.php?30-General-Paid-Work-Requests

Beverleyh
01-13-2016, 08:03 AM
oh and by the way. what part of the script tells the browser to display the first circle x amount of pixels away from the cursor?

var offsetx=15 //x offset of trail from mouse pointer

var offsety=10 //y offset of trail from mouse pointer

jundo12
01-20-2016, 12:47 AM
thanks bev. what i meant by not responsive is, when i resize the browser window, it doesn't resize like the rest of the images on the page. i have everything, even the text on the page, resizing according to browser size. but the image following the cursor in the script, stays the same size. just wasnt sure how to modify it to resize like the rest of the images on the page. i'm using percentages of course, to keep the layout the same regardless of resolution (well standard resolution sizes anyway). everything scales down nicely but the cursor image(s) don't.