and it has a Floating Tab Facebook like button,
4 LIKE button, and when i refresh the tab,
another LIKE button will display.
Sample LIKE button
http://www.facebook.com/faith.leeminho
http://www.facebook.com/VeryWellSaid
http://www.facebook.com/TheCW
http://www.facebook.com/Supernatural
i have no idea for random code
<script type="text/javascript">
FB.Event.subscribe('edge.create',
function(response) {
window.top.location.href = "http://www.myurl.com";
}
</script>
<div style='display:none'>
<div id='mdfb' style='padding:10px; background:#fff;'>
<center><h3 class="mdbox-title">LIKE the PAGE</h3>
</center>
<center>
<p style="line-height:10px;" >▼</p>
<div class="fb-like-box" data-href="http://www.facebook.com/TheCW5" data-width="360" data-height="70"data-show-faces="false" data-stream="false" data-header="false"></div>
<p>Advertisement</p>
</center>
</div>
</div>
can this code be applied?
<HEAD>
<script language="Javascript">
<!--
function get_random()
{
var ranNum= Math.floor(Math.random()*5);
return ranNum;
}
function gLink()
{
var wLink=get_random();
var link=new Array(5)
link[0]="http://www.google.com";
link[1]="http://www.msn.com";
link[2]="http://www.yahoo.com";
link[3]="http://www.ebay.com";
link[4]="http://www.cnn.com";
window.location = (link[wLink]);
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<FORM name="gotolink">
<INPUT TYPE="button" value="Go to random link!" onclick="gLink()">
</FORM>
</BODY>
Sample for the VIDEO
<html>
<head>
<title>Random Video</title>
</head>
<body>
<h1>Displaying a random video</h1>
<?
/*source code of each embed videos inside the videos array*/
$videos= array('<embed src="http://www.metacafe.com/fplayer/811523/ufo_mobile_transformer.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"> </embed>','<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/PD1_puuceg0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/PD1_puuceg0" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>','<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/Lkt-zAAYRGA"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/Lkt-zAAYRGA" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>','<object width="425" height="353"><param name="movie" value="http://www.youtube.com/v/2pPCkhYMQgY"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/2pPCkhYMQgY" type="application/x-shockwave-flash" wmode="transparent" width="425" height="353"></embed></object>','<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/fY4Epc2XSGc"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/fY4Epc2XSGc" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>','<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/R_ruSmFFdAY"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/R_ruSmFFdAY" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>');
/*we display one video at a time (number 1 - default value)*/
$randvideo = array_rand($videos,1);
echo $videos[$randvideo];
?>
<p>PRESS F5 TO REFRESH THE PAGE AND DISPLAY ANOTHER RANDOM VIDEO</p>
</body>
</html>
This post has been edited by ice_skate3: 10 October 2012 - 07:54 PM

New Topic/Question
Reply




MultiQuote


|