PDA

View Full Version : <IFRAME> ticker



Comex
10-13-2009, 08:21 PM
Hello,

I am tring to add to the: :: <IFRAME> ticker

http://www.dynamicdrive.com/dynamicindex2/iframe-ticker.htm

And it will not display?

It has 4 areas, I added another like so:

<!-- ADD TICKER's CONTENT #5 HERE--------------------->

<p align="left"><font face="Verdana"><strong><a href="http://eyeway.gr" target="_blank"><img src="http://comexcentral.com/images/ads3.jpg"><small></small></a><br>
</strong><small></small></font></p>

<!-- END CONTENT #5----------------->

</div>

<div id="content5" style="display:none">



</div>

But it will Not display on our site:

http://comexcentral.com/

Free Advertising box

Any suggestions?

Thank you.

jscheuer1
10-14-2009, 12:38 AM
You messed up your exfile.htm file, try this one instead:


<script language="JavaScript1.2">

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

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

var ie5=document.all

var curindex=0
var totalcontent=0

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

function contract_all(){
for (y=0;y<totalcontent;y++){
if (ie5)
eval("document.all.content"+y).style.display="none"
else
document.getElementById("content"+y).style.display="none"
}
}

function expand_one(which){
contract_all()
if (ie5)
eval("document.all.content"+which).style.display=""
else
document.getElementById("content"+which).style.display=""
}

function rotate_content(){
get_total()
contract_all()
expand_one(curindex)
curindex=(curindex<totalcontent-1)? curindex+1: 0
setTimeout("rotate_content()",delay)
}

window.onload=rotate_content

</script>

<BODY bgColor=#FFFFFF>

<!--ADD YOUR TICKER CONTENT BELOW, by wrapping each one inside a <DIV> as shown below.-->
<!--For each DIV, increment its ID attribute for each additional content (ie: "content1", "content2" etc)-->


<div id="content0" style="display:''">

<!-- ADD TICKER's CONTENT #1 HERE--------------------->

<p align="left"><strong><font face="Verdana"><small><a href="http://www.socialengine.net/?aff=comexcentral" target="_blank"><img src="http://comexcentral.com/images/editor/tn.jpg"></a>&nbsp;</small></font></strong><br>
<font face="Verdana" size="2"></font></p>

<!-- END CONTENT #1----------------->

</div>

<div id="content1" style="display:none">

<!-- ADD TICKER's CONTENT #2 HERE--------------------->

<p align="left"><strong><font face="Verdana"><small><a href="http://modxcms.com/" target="_blank"><img src="http://modxcms.com/assets/images/icons/ico_spread.png"border="0"></a>&nbsp;</small></font></strong><br>
<font face="Verdana"><small></small></font></p>

<!-- END CONTENT #2----------------->

</div>

<div id="content2" style="display:none">

<!-- ADD TICKER's CONTENT #3 HERE--------------------->

<p align="left"><small><strong><font face="Verdana"><a href="http://www.elgg.org/" target="_blank"><img src="http://www.linkbuildr.com/wp-content/uploads/2008/10/elgg-logo.gif"border="0"></a>&nbsp;</font></strong></small><br>
<small><font face="Verdana"></font></small></p>

<!-- END CONTENT #3----------------->

</div>

<div id="content3" style="display:none">

<!-- ADD TICKER's CONTENT #4 HERE--------------------->

<p align="left"><font face="Verdana"><strong><a href="http://comexcentral.com/link%20to%20comex" target="_blank"><img src="http://comexcentral.com/images/editor/free%20ad.jpg"border="0"><small></small></a><br>
</strong><small></small></font></p>

<!-- END CONTENT #4----------------->

</div>

<div id="content4" style="display:none">

<!-- ADD TICKER's CONTENT #5 HERE--------------------->

<p align="left"><font face="Verdana"><strong><a href="http://eyeway.gr" target="_blank"><img src="http://comexcentral.com/images/ads3.jpg"><small></small></a><br>
</strong><small></small></font></p>

<!-- END CONTENT #5----------------->

</div>

Comex
10-14-2009, 05:45 PM
Thanks John,

Works Perfect.

So when I need to add more I can simply add below?

-----------------------------------------------------------

<div id="content5" style="display:none">

<!-- ADD TICKER's CONTENT #6 HERE--------------------->

<p align="left"><font face="Verdana"><strong><a href="http://eyeway.gr" target="_blank"><img src="http://comexcentral.com/images/ads3.jpg"><small></small></a><br>
</strong><small></small></font></p>

<!-- END CONTENT #6----------------->

</div>__________________

------------------------------------------------------------

Correct?

And Thank you!

jscheuer1
10-15-2009, 01:56 AM
Looks about right (I cannot be 100% certain because the way your code is formatted in your post is a tiny bit ambiguous, but I think you do have the right idea now), if you do have any problems though, you know where to come.

Alternatively, just try your code out and view it in the browser, you'll know right away if it is working or not.