Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Rotating SWF Script, need help to complete

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

dumai

New Member
Impact
0
Someone wrote me this script which allows me to switch to a pure HTML page or
Flash embedded HTML page. Now I would like to use the script above to rotate my SWF files,

***but starting from " ECHO SRAND " I am having trouble coding it right. I think I am missing commas, slashes or ??? ***

Also without SRAND.... the script works fine.

Can anyone help me fix this, code below?

---------------------------------------------------------------------------

<?php
if ($_GET['choice']=="html"){
$_SESSION['format']=="html";
} elseif ($_GET['choice']=="flash") {
$_SESSION['format']=="flash";
}

if ($_SESSION['format']=="html") {
echo "<img src=\"images/fso_hometest.jpg\" width=\"776\" height=\"256\">";

}
elseif ($_SESSION['format']=="flash"){
$_SESSION['format']=="flash";

echo

srand ((double)microtime()*1000000);

//from 1 to the number of ads
$random_num = rand(1, 3);
$include_ad = "flash_banner" . $random_num . ".swf";


"<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"776\" height=\"256\" id=\"tool_banner\" align=\"middle\">
<param name=\"allowScriptAccess\" value=\"sameDomain\" />
<param name=\"movie\" value=\"<? echo $include_ad; ?>\" />
<param name=\"quality\" value=\"high\" />
<param name=\"bgcolor\" value=\"#ffffff\" />
<embed src=\"<? echo $include_ad; ?>\" quality=\"high\" bgcolor=\"#ffffff\" width=\"776\" height=\"256\" name=\"tool_banner\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />
</object>";
}
?>
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Help!!
 
0
•••
hmmm, not sure, im posting this to bump, see if anyone can help you
 
0
•••
Appraise.net

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover

NamePros updates

New in Parking: updated way to act on many domains or inquiries at once
Your domain list and inquiry list now have a bar above and below the list. Check the items you want, then choose an action in the bar...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back