/    Sign up×
Community /Pin to ProfileBookmark

need help with rollovers

people, hello!

i need some guidance..

i’ve re-created this look and feel for this ecommerce company. it’s limited with certain elements only because they didn’t want it to look to commercy.

[url]http://www.lastwave.com/new/index.html[/url]

also don’t mind the text fonts and stuff…it’s not done yet…just a rough…

but see the two images? i want them to rotate. not by flash but by javascript. i forgot what the code was to generate that. can someone help me?

thanks..

Les

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@stephen1davisApr 12.2006 — what two images?
Copy linkTweet thisAlerts:
@drew68authorApr 12.2006 — sorry about that...the image of the hat...and the big main image of the surf.

that big main image will be more than likely flash...but the image of the hat will rotate. i have 8 images there to rotate. i just need the coding i think for it.

i won't be back till about 4 pm pst. gotta run down to Santa barbara real quick but i hope you'll reply by the time i get back...

thanks much.

drew
Copy linkTweet thisAlerts:
@stephen1davisApr 12.2006 — are you saying a timed rotation? if so, here is an example.

[code=html]<body onload="auto()">

<script type="text/javascript">
newImg=new Array ();

newImg[0]="xx1.jpg";
newImg[1]="xx2.jpg";
newImg[2]="xx3.jpg";
newImg[3]="xx4.jpg";
newImg[4]="xx5.jpg";
newImg[5]="xx6.jpg";
newImg[6]="xx7.jpg";
newImg[7]="xx8.jpg";

var imgNum=0;
var imgLength = newImg.length-1;


function changeImg() {
if (imgNum < imgLength) {
imgNum++;
}
else {
imgNum=0;
}

document.slideshow.src=newImg[imgNum];
}

function auto() {
setInterval("changeImg()", 3000);
}
</script>

<img name="slideshow" src="xx1.jpg">[/code]
Copy linkTweet thisAlerts:
@drew68authorApr 12.2006 — thanks...thanks so much...i'll try that when i get back..i'm heading out the door to SB right now but will be back at around 4 or 5 to try it...i'll let you know how that goes. thanks for your time!

drew
×

Success!

Help @drew68 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...