Go Back   Dynamic Drive Forums > DD Scripts > Dynamic Drive scripts help
Search Dynamic Drive Forums:

Reply
 
Thread Tools Search this Thread
  #1  
Old 10-24-2004, 05:08 AM
PokerEh PokerEh is offline
New Comer (less than 5 posts)
 
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
Reply With Quote
  #2  
Old 10-27-2004, 04:43 AM
PokerEh PokerEh is offline
New Comer (less than 5 posts)
 
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.
Reply With Quote
  #3  
Old 10-27-2004, 07:19 AM
cr3ative's Avatar
cr3ative cr3ative is offline
Elite Coders
 
Join Date: Aug 2004
Location: Brighton
Posts: 1,564
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
__________________
Mostly retired member, PM me if you have a specific query to make sure I recieve it :)
cr3ation | cr3ation hosting | cr3ation web design | read the stickies

Last edited by cr3ative; 10-27-2004 at 07:32 AM.
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:14 AM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.