TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 18, 2024, 09:40:03 AM

Login with username, password and session length
Members
  • Total Members: 3,886
  • Latest: Grendor
Stats
  • Total Posts: 195,189
  • Total Topics: 21,220
  • Online today: 112
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 98
  • Total: 98

Links Block

Started by ontap, January 07, 2006, 11:34:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Reality12

I just realized something...

Can't this code be used as a banner rotating script? Seems logical, just build a block and set the rotating speed...

Zetan

Quote from: ~Alex on May 22, 2007, 04:09:12 PM
I just realized something...

Can't this code be used as a banner rotating script? Seems logical, just build a block and set the rotating speed...

There is a Rotating Banners snippet already, which changes banner on each refresh.

Or, I use this for scrolling small image links.

Script Block:
<marquee  behavior="scroll" direction="up" height="100px" scrolldelay=" 0" scrollamount=" 1" onmouseover="this.stop()" onmouseout="this.start()">

<div align="center">


<a href="http://HyperLink.com" target="_blank"><img src="http://ImageLocation.jpg" border="0" Title="MouseOverText"></a>

<br><br>

<a href="http://HyperLink.com" target="_blank"><img src="http://ImageLocation.jpg" border="0" Title="MouseOverText"></a>

<br><br>

<a href="http://HyperLink.com" target="_blank"><img src="http://ImageLocation.jpg" border="0" Title="MouseOverText"></a>

<br><br>

<a href="http://HyperLink.com" target="_blank"><img src="http://ImageLocation.jpg" border="0" Title="MouseOverText"></a>

<br><br>

<a href="http://HyperLink.com" target="_blank"><img src="http://ImageLocation.jpg" border="0" Title="MouseOverText"></a>

<br><br>


<a href="http://HyperLink.com" target="_blank"><img src="http://ImageLocation.jpg" border="0" Title="MouseOverText"></a>

<br><br>


<a href="http://HyperLink.com" target="_blank"><img src="http://ImageLocation.jpg" border="0" Title="MouseOverText"></a>

<br><br>

<a href="http://HyperLink.com" target="_blank"><img src="http://ImageLocation.jpg" border="0" Title="MouseOverText"></a>

<br><br>

<a href="http://HyperLink.com" target="_blank"><img src="http://ImageLocation.jpg" border="0" Title="MouseOverText"></a>

<br><br>

<a href="http://HyperLink.com" target="_blank"><img src="http://ImageLocation.jpg" border="0" Title="MouseOverText"></a>

<br><br>

<a href="http://HyperLink.com" target="_blank"><img src="http://ImageLocation.jpg" border="0" Title="MouseOverText"></a>

</div>

</marquee>


You can set the delay, scroll speed and direction, and it pauses on mouse over. I believe it's one of JPDeni's snippits. I can't remember what it's called.

Lord Anubis

Yep and you can make it horizontal by changing

direction="up"

"up" to right or left

Reality12

Anubis, what script are you using for the ads on your forum?

The ones at the top of each page.

Lord Anubis

Google Ads, and I am using only image ads...no text ads (by default they set it to text)

cru

hi, i added this line fcontent[3]="Got a website?...<br><a href='http://mylink.blaaa' target='_new'>Link to me FREE!...</a><Br>";

as shown below:
var fcontent=new Array();
begintag='<div style="font: normal 14px Arial; padding: 5px;">'; //set opening tag, such as font declarations
fcontent[0]="<a href='http://mylink.blaaa' target='_new'>My Links...</a><Br><a href='http://mylink.blaaa' target='_new'>My Links...</a><Br><a href='http://mylink.blaaa' target='_new'>My Links...</a><Br><a href='http://mylink.blaaa' target='_new'>My Links...</a><Br><a href='http://mylink.blaaa' target='_new'>My Links...</a><Br><a href='http://mylink.blaaa' target='_new'>My Links...</a><Br>";
fcontent[1]="Got a website?...<br><a href='http://mylink.blaaa' target='_new'>Link to us FREE!...</a><Br>";
fcontent[3]="Got a website?...<br><a href='http://mylink.blaaa' target='_new'>Link to me FREE!...</a><Br>";
closetag='</div>';


but the 3rd slide displays:
Quoteundefined

what's wrong with my code?

IchBin

Why did you skip 2 ? You went 0, 1, 3. I'm not sure about javascript, but maybe it requires you to actually count in order without skipping numbers.

b33znutz