No replies
slowph
Offline
newbie
Manila
Last seen: 7 years 6 weeks ago
Manila
Timezone: GMT+8
Joined: 2007-03-14
Posts: 1
Points: 0

Hi,

I am sure this has been done many times before but I can not find a simple solution. Could someone point me in the right direction?

I have a simple rotating quote (thanks to javascript), all i need to do is to make those buttons link to a specific DIV, and display them..

the page: http://etektonix.com/temp/quotecasestudy.htm

the code:

//IFRAME TICKER- By Dynamic Drive (http://www.dynamicdrive.com)

//configure delay between changing messages (3000=3 seconds)
var delay=6000

var ie4=document.all

var curindex=0
var totalcontent=0

function get_total(){
if (ie4){
while (eval("document.all.content"+totalcontent))
totalcontent++
}
else{
while (document.getElementById("content"+totalcontent))
totalcontent++
}
}

function contract_all(){
for (y=0;y

-------------
The Body:

and so on...

Thanks for your help.

edit by CT/ post edited because code tags not used in post making it unreadbale. PLEASE USE THE CODE TAGS to post script, css and html.

Tags: