Results 1 to 3 of 3

Thread: Adding pause, Next, and previous buttons to script

  1. #1
    Join Date
    Oct 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Adding pause, Next, and previous buttons to script

    Hi,

    I just installed a simple DD script on my site for a rotating news:

    http://www.pokereh.com

    I created "PAUSE" "PREVIOUS" AND "NEXT" buttons, but I have no idea how to make them active. Since the script pulls the information from another file:
    http://www.pokereh.com/news.htm
    Do I have to put code on that URL, or on my main page?

    Any advice or help would be much apriciated!

    Regards,

    David

  2. #2
    Join Date
    Oct 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Would it help if I offered a programmer money to program this coding?

    I could PayPal or Neteller it.

  3. #3
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This is probably the most ridiculously unstable "Back" button I have ever made.
    However the code for Next works perfectly.

    (I don't accept donations )
    Although there is a member on the forums who owes me a 24-pack of beer... well anyway...

    Code:
    <html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
    <!--
    body 				{  font-family: Arial, Georgia, Serif; font-size: 14px; font-weight: 500; font-style: normal; text-decoration: none; text-transform: none; font-variant: normal; color: #000000;}
    p,blockquote,li,ol,ul,td 	{  font-family: Arial, Georgia, Serif; font-size: 14px;  font-weight: 500; font-style: normal; text-decoration: none; text-transform: none; font-variant: normal; color: #000000;}
    a 				{  font-family: Arial, Georgia, Serif; font-size: 14px; font-weight: 500; font-style: normal; text-decoration: none; text-transform: none; font-variant: normal; color: #FF0000;}
    a:hover 			{  font-family: Arial, Georgia, Serif; font-size: 14px; font-weight: 500; font-style: normal; text-decoration: underline; text-transform: bold; font-variant: bold; color: #FF0000;}
    -->
    </style><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 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<totalcontent;y++){
    if (ie4)
    eval("document.all.content"+y).style.display="none"
    else
    document.getElementById("content"+y).style.display="none"
    }
    }
    
    function expand_one(which){
    contract_all()
    if (ie4)
    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
    }
    
    function backtent(){
    get_total()
    contract_all()
    expand_one(curindex-2)
    }
    
    function start_rotate(){
    setTimeout("rotate_content()",delay)
    setTimeout("start_rotate()",delay)
    }
    
    window.onload=start_rotate
    
    </script></head>
    
    
     
    
    
    
    
    
    
    
    <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: none;">
    
    <!-- ADD TICKER's CONTENT #1 HERE--------------------->
    
    <p align="left"><strong><font face="Verdana"><small><a href="http://www.pokereh.com/news/poker-bots.html" target="_BLANK">Are poker ‘bots’ raking online pots??</a> </small></font></strong><br>
    <font face="Verdana" size="2">Concern is growing in online chat rooms and news groups devoted to poker that sophisticated card-playing robots
    <br><a href="http://www.pokereh.com/news/poker-bots.html" target="_BLANK">Read More...</a>
    <a href='javascript:rotate_content();'>Next</a><a href='javascript:backtent();'>Back</a></font></p>
    
    <!-- END CONTENT #1----------------->
    
    </div>
    
    
    
    <div id="content1" style="display: none;">
    
    <!-- ADD TICKER's CONTENT #1 HERE--------------------->
    
    <p align="left"><strong><font face="Verdana"><small><a href="http://www.pokereh.com/news/win-online.html" target="_BLANK">Do players win money playing online poker?</a> </small></font></strong><br>
    <font face="Verdana" size="2">It takes knowledge, good strategy,
    discipline and most important confidence. You can have very long runs
    of losing and can lose 100 big bets fast. <br><a href="http://www.pokereh.com/news/win-online.html" target="_BLANK">Read More...</a>
    <a href='javascript:rotate_content();'>Next</a><a href='javascript:backtent();'>Back</a></font></p>
    
    <!-- END CONTENT #1----------------->
    
    </div>
    
    <div id="content2" style="display: none;">
    
    <!-- ADD TICKER's CONTENT #2 HERE--------------------->
    
    <p align="left"><strong><font face="Verdana"><small><a href="http://www.dynamicdrive.com/dynamicindex5/flashlink.htm" target="_top">The Canadian Poker Tour</a> </small></font></strong><br>
    <font face="Verdana"><small>The CPT is a collection of poker
    tournaments that will be taking place across Canada in the upcoming
    months. There are two types of events. <br><a href="http://www.pokereh.com/canadian-poker-tour/">Read More...</a>      
    <a href='javascript:rotate_content();'>Next</a><a href='javascript:backtent();'>Back</a>    </small></font></p>
    
    <!-- END CONTENT #2----------------->
    
    </div>
    
    <div id="content3" style="">
    
    <!-- ADD TICKER's CONTENT #3 HERE--------------------->
    
    <p align="left"><small><strong><font face="Verdana"><a href="http://www.pokereh.com/forum/" target="_BLANK">PokerEh.com Canadian Poker Forum:  Now Live!</a> </font></strong></small><br>
    <small><font face="Verdana">If you are looking for a home game to play in, or are looking for fellow poker players in your area, please Visit our forum.  
    <br><a href="http://www.pokereh.com/forum/" target="_BLANK">Read More...</a>
    <a href='javascript:rotate_content();'>Next</a><a href='javascript:backtent();'>Back</a></font></small></p>
    
    <!-- END CONTENT #3----------------->
    
    </div>
    
    <div id="content4" style="display: none;">
    
    <!-- ADD TICKER's CONTENT #4 HERE--------------------->
    
    <p align="left"><font face="Verdana"><strong><a href="http://www.pokereh.com/news/freeroll.html" target="_top"><small>The Largest Freeroll Poker Tournament in History</small></a><br>
    </strong><small>The amazing growth of online poker is poised to cross
    another threshold with the poker world's first freeroll tournament to
    offer cash prizes totaling $100,000. Yes, that's right: $100,000!
    <br><a href="http://www.pokereh.com/news/freeroll.html" target="_BLANK">Read More...</a>
    <a href='javascript:rotate_content();'>Next</a><a href='javascript:backtent();'>Back</a>
    
    
    </small></font></p>
    
    <!-- END CONTENT #4----------------->
    
    </div>
    
    <div id="content5" style="display: none;">
    
    <!-- ADD TICKER's CONTENT #5 HERE--------------------->
    
    <p align="left"><font face="Verdana"><strong><a href="http://www.pokereh.com/news/tsn.html" target="_top"><small>The Great Canadian Poker Tournament Launches on TSN</small></a><br>
    </strong><small>Extreme Poker Ltd.'s wholly owned subsidiary, The Great
    Canadian Poker Tournament Ltd. has entered into an agreement with TSN,
    Canada's Sports Leader, to air 13 episodes of The Great Canadian Poker
    Tournament.
    <br><a href="http://www.pokereh.com/news/tsn.html" target="_BLANK">Read More...</a>
    <a href='javascript:rotate_content();'>Next</a><a href='javascript:backtent();'>Back</a>
    
    
    </small></font></p>
    
    <!-- END CONTENT #5----------------->
    
    </div>
    
    <div id="content6" style="display: none;">
    
    <!-- ADD TICKER's CONTENT #6 HERE--------------------->
    
    <p align="left"><font face="Verdana"><strong><a href="http://www.pokereh.com/news/absolute-poker-wsop.html" target="_top"><small>Absolute Poker's World Series of Poker Tournament:  October 24th</small></a><br>
    </strong><small>On October 24th, at 9:00 PM ET, Absolute Poker is
    having a guaranteed World Series of Poker Tournament. Register early,
    as seats are limited.
    <br><a href="http://www.pokereh.com/news/absolute-poker-wsop.html" target="_BLANK">Read More...</a>
    <a href='javascript:rotate_content();'>Next</a><a href='javascript:backtent();'>Back</a>
    
    
    </small></font></p>
    
    <!-- END CONTENT #6----------------->
    
    </div>
    
    </body></html>
    cr3ative
    Last edited by cr3ative; 10-27-2004 at 06:32 AM.
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

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
  •