Thread: Simple picture loading script
Results 1 to 4 of 4
Related
-
simple dbase script Forum: Databases
Replies: 3 -
Simple picture loading script? Forum: Javascript Forum
Replies: 4 -
Is it possible? loading two different script from one <img ... >?? Forum: CGI Perl Forum
Replies: 0 -
script that prevent user copy picture(also works in xp)? Forum: HTML Forum
Replies: 7
-
04-06-2004, 04:02 PM #1
Simple picture loading script?
Hello,
I'm looking to accomplish a simple picture loading script. Should be pretty easy, and any help is appreciated, considering I don't even know where to start.
I'm looking to have say 5 links on a page. Just as well, there is 1 picture spot on the page.
These 5 links, when any of them are clicked, load the corresponding picture into the picture box.
Make sense? Nothing is preloaded, just loaded when one of the links is clicked, and then the picture loads into the picture spot.
All help is deeply appreciated!
Thanks in advance!
-
04-06-2004, 04:12 PM #2
Hiya,
make an image with a name, you can then access it like this -
Code:<img src="first-image.gif" name="swappy"><br /><br /> <a href="javascript: void(0);" onClick="document.swappy.src='second-image.gif';">bleh</a>
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
04-06-2004, 05:25 PM #3
Thanks Dean!
Working great, now I actually came up with a new dilema...
What if I want to link these images to the various higher resolution counterparts?
For instance, image 1, image 2, image 3...
When loaded, the correct HREF tag loads with the image, when any are clicked they go to their correct high res counterpart.
Make sense?
Any more help is greatly appreciated! Thanks!
-
04-07-2004, 05:38 PM #4
Ah. We will have to take a completely different approach.
Just got in from work, and its already time for bed :S so leave it with me, I'll cook some code up tommorow.If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum