Results 1 to 4 of 4

Thread: <IFRAME> ticker

  1. #1
    Join Date
    Oct 2009
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default <IFRAME> ticker

    Hello,

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

    http://www.dynamicdrive.com/dynamici...ame-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.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    You messed up your exfile.htm file, try this one instead:

    HTML Code:
    <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>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Oct 2009
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Ticker

    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!

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    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.
    Last edited by jscheuer1; 10-15-2009 at 02:43 AM. Reason: add alternative
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •