Log in

View Full Version : rotate banner code help


logicuk
04-09-2008, 09:02 AM
im using this banner rotate code but it dont seem to work with .swf's any ideas?

$random_number = rand(1, 5);

$random_banner[1] = '<a href="http://www.site.com/" target="_blank"><img src="banners/sensi.gif" alt="" border="0" /></a>';
$random_banner[2] = '<a href="http://www.site2.com" target="_blank"><img src="banners/dna.gif" alt="" border="0" /></a>';
$random_banner[3] = '<a href="http://www.site3.com" target="_blank"><img src="banners/kiwi.gif" alt="" border="0" /></a>';
$random_banner[4] = '<a href="http://www.site4.com" target="_blank"><img src="banners/soft1.gif" alt="" border="0" /></a>';
$random_banner[5] = '<a href="http://www.site5.com" target="_blank"><img src="banners/banner.gif" alt="" border="0" /></a>';

Dismounted
04-09-2008, 09:59 AM
Exactly what code are you using? Where are you hooking the plugin? Where are you putting the variable (which template)?

logicuk
04-09-2008, 04:21 PM
im using this code mate

http://www.vbulletin.com/forum/showthread.php?t=170826

Dismounted
04-10-2008, 05:32 AM
But what code are YOU putting into the box?

logicuk
04-10-2008, 07:07 AM
$random_banner[5] = '<a href="http://www.site5.com" target="_blank"><img src="banners/banner.swf" alt="" border="0" /></a>';

that code for the sfw banner

Dismounted
04-10-2008, 10:50 AM
Flash banners cannot be inserted using the usual image code. You need to use the Flash embed code instead.

logicuk
04-10-2008, 04:17 PM
can you give me the working code thanks

Lynne
04-10-2008, 04:33 PM
googlind "html embed flash" comes up with many links including this one: http://www.w3schools.com/flash/flash_inhtml.asp