| Author |
Message |
ciph3r Worker


Joined: Jun 01, 2005 Posts: 176
|
Posted:
Wed Jan 02, 2008 11:31 pm |
|
Ive searched everywhere, and cant find a conclusive post or download for a simple module/block/addon for advertising images/text.
I want to advertise a few sites using their images in a scrolling (which stops with mouseover) on my rnuke site, but cant figure out how to do it without doing my own HTML based version. |
|
|
|
 |
999 Hangin' Around

Joined: Sep 12, 2006 Posts: 49 Location: Dsm, IA
|
Posted:
Thu Jan 03, 2008 8:22 am |
|
| Code: | <?php
if( eregi( "block-Scroll.php", $_SERVER['SCRIPT_NAME'])) {
Header("Location: index.php");
die();
}
global $prefix;
$func = 1;
if ($func == 1)
{
$content .= "<center><a target=\"_blank\" href=\" http://ravenphpscripts.com\"><img src=\"http://ravenphpscripts.com/images/mylinks/RavenWebServices.gif\" border=\"0\" title=\"PHP Web Host - Quality Web Hosting For All PHP Applications\"alt=\"Quality Web Hosting and Scripts \"></a></center><br>";
$content .= "<center><a target=\"_blank\" href=\" http://www.somesite.com\"><img src=\"images/somesite.gif\" border=\"0\" title=\"Somesite\"alt=\"Somesite we know \"></a></center><br>";
$content .= "<center><a target=\"_blank\" href=\" http://www.somesite2.com\"><img src=\"images/somesite2.gif\" border=\"0\" title=\"Somesite2\"alt=\"Somesite2 we know \"></a></center><br>";
$content = "<marquee scrollamount=\"2\" direction=\"down\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\" loop=\"true\">$content</marquee>";
}
?> |
|
|
|
|
 |
ciph3r Worker


Joined: Jun 01, 2005 Posts: 176
|
Posted:
Thu Jan 03, 2008 3:47 pm |
|
Is that the same as the recommended sites block located here? |
|
|
|
 |
999 Hangin' Around

Joined: Sep 12, 2006 Posts: 49 Location: Dsm, IA
|
Posted:
Thu Jan 03, 2008 5:36 pm |
|
The one here may be written somewhat differently, but the functionality is the same. |
|
|
|
 |
ciph3r Worker


Joined: Jun 01, 2005 Posts: 176
|
Posted:
Fri Jan 04, 2008 1:24 am |
|
I used the code that was posted, but when the page for loads it shows all the images at once taking up half the page. Once the page finishes loading, it works fine. Is there a way to fix this? |
|
|
|
 |
Dawg Life Cycles Becoming CPU Cycles

Joined: Nov 07, 2003 Posts: 564
|
Posted:
Fri Jan 04, 2008 6:51 am |
|
Is that in Mozilla? Have you tried it in IE? I have several scrolling blocks for forums and such and they all do that in Mozilla.
Dawg |
|
|
|
 |
999 Hangin' Around

Joined: Sep 12, 2006 Posts: 49 Location: Dsm, IA
|
Posted:
Fri Jan 04, 2008 7:16 am |
|
Mine does the same but never really been an issue. I'd assume the more js you have running on the page, the slower it'll load. There's probably a way to fix it or atleast make it less noticeable, but never really had an issue with it. |
|
|
|
 |
|
|
|
|