Jump to content
php.lv forumi

Banneru rotacija


ysakovs

Recommended Posts

Sveicinaati!

Man ir sis baneru rotaacijas scripts!:

 

<script type="text/javascript" language="Javascript">

 

function random_content(){

var mycontent=new Array()

//specify random content below.

mycontent[1]='<a href=LINKS UZ WEBADRESI target=_blank><img border=0 src=LINKS UZ BILDI alt="" width="468" border="0" height="60"></a>'

mycontent[2]='<a href=LINKS UZ WEBADRESI target=_blank><img border=0 src=LINKS UZ BILDI alt="" width="468" border="0" height="60"></a>'

mycontent[3]='<a href=LINKS UZ WEBADRESI target=_blank><img border=0 src=LINKS UZ BILDI alt="" width="468" border="0" height="60"></a>'

mycontent[4]='<a href=LINKS UZ WEBADRESI target=_blank><img border=0 src=LINKS UZ BILDI alt="" width="468" border="0" height="60"></a>'

 

var ry=Math.floor(Math.random()*mycontent.length)

if (ry==0)

ry=1

document.write(mycontent[ry])

}

random_content()

//-->

</script>

 

Tacu ir probleema!

kaa sim scriptam pievienot flash banneri?

 

Flash bannera kods:

<div class="ad468x60"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="468" height="60" title="banner">

<param name="movie" value="multiboss_lv.swf">

<param name="quality" value="high">

<embed src="http://www.m-team.lv/multiboss_lv.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="468" height="60"></embed>

</object></div>

Paldies

Link to comment
Share on other sites

Nu tā arī tam masīvam pamēģini pielikt...

mycontent[5]='<div class="ad468x60"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="468" height="60" title="banner"><param name="movie" value="multiboss_lv.swf"><param name="quality" value="high"><embed src="http://www.m-team.lv/multiboss_lv.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="468" height="60"></embed></object></div>';

Link to comment
Share on other sites

Nu tā arī tam masīvam pamēģini pielikt...

mycontent[5]='<div class="ad468x60"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="468" height="60" title="banner"><param name="movie" value="multiboss_lv.swf"><param name="quality" value="high"><embed src="http://www.m-team.lv/multiboss_lv.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="468" height="60"></embed></object></div>';

 

viss sanaaca!

 

paldies :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...