Forums | MacLife
You are not logged in.
#1 2003-02-01 7:02 am
- Short Circuit
- authorized airduct engineer
- From: UESC Marathon
- Registered: 2002-05-17
- Posts: 4739
Javascript: switch images
Hi!
I noticed that everytime I enter this page a image is changed, notice the girl holding the BriQ, hit refresh, see her now ?
http://www.terrasoftsolutions.com/products/
anyway I looked at the source, and found out that it is governed by a javascript, but I cannot understand it:
Code:
function hiLite(imgDocID,imgObjName) {
// imgDocID - name or number of document image to be replaced
// imgObjName - name of image object to be swapped in
if (browserVer == 1) {
document.images[imgDocID].src = eval(imgObjName + ".src")
}}
can you help me ? there are no links anywhere, apart from the one which has been placed on the page, not the four others...
W
Frog7blast the ventcore!
Offline
#2 2003-02-01 8:20 am
Re: Javascript: switch images
The script you quoted is a part of the roll-over script they are using.
The images like the one you pointed out and the one at the top are not done using javascript, they are dynamically written in by the server. (it appears to be Perl).
Look at hotscripts.com for a random image script that works with whatever lang you are using.
Offline
#3 2003-02-01 8:28 am
- Short Circuit
- authorized airduct engineer
- From: UESC Marathon
- Registered: 2002-05-17
- Posts: 4739
Re: Javascript: switch images
Doh!
thanks, ill check that page...
W
Frog7blast the ventcore!
Offline

