IUD
08-22-2009, 06:54 AM
I'm beginer to vbulletin & Javascript also :mad:
1.)I want embed this code to vBadvanced CMPS,adv_portal_onlineusers templat..Please anyone can solve this code??, I want to replce as 2.)
<html>
<body>
<script type="text/javascript">
var r=Math.random();
if (r>0.5)
{
document.write("<a href='http://www.google.com'>Google!</a>");
}
else
{
document.write("<a href='http://www.yahoo.com'>Yahoo!</a>");
}
</script>
</body>
</html>
-------------------
2.)
<tr>
<td class="thead"><span class="smallfont"><phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase></span></td>
</tr>
<tr>
<td class="$altbgclass"><span class="smallfont"><html>
<body>
<script type="text/javascript">
var r=Math.random();
if (r>0.5)
{
document.write("<a href='http://www.google.com'>Google!</a>");
}
else
{
document.write("<a href='http://www.yahoo.com'>Yahoo!</a>");
}
</script>
</body>
</html>$activeusers</span></td>
</tr>
<tr>
<td class="$bgclass"><span class="smallfont"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></span></td>
</tr>
--------------- Added 1250951010 at 1250951010 ---------------
bump
1.)I want embed this code to vBadvanced CMPS,adv_portal_onlineusers templat..Please anyone can solve this code??, I want to replce as 2.)
<html>
<body>
<script type="text/javascript">
var r=Math.random();
if (r>0.5)
{
document.write("<a href='http://www.google.com'>Google!</a>");
}
else
{
document.write("<a href='http://www.yahoo.com'>Yahoo!</a>");
}
</script>
</body>
</html>
-------------------
2.)
<tr>
<td class="thead"><span class="smallfont"><phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase></span></td>
</tr>
<tr>
<td class="$altbgclass"><span class="smallfont"><html>
<body>
<script type="text/javascript">
var r=Math.random();
if (r>0.5)
{
document.write("<a href='http://www.google.com'>Google!</a>");
}
else
{
document.write("<a href='http://www.yahoo.com'>Yahoo!</a>");
}
</script>
</body>
</html>$activeusers</span></td>
</tr>
<tr>
<td class="$bgclass"><span class="smallfont"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></span></td>
</tr>
--------------- Added 1250951010 at 1250951010 ---------------
bump