sabian
03-27-2005, 12:12 AM
I am trying to get the following to work on Voisd.com (http://www.voisd.com) am i missing something? what am i doing wrong?
Heres the code (obviously ill have a number of different links, not the same one(s):
var r=Math.random()
if (r> 0 && r < 0.1)
{
document.write("<p><a href='http://www.bluecubegraphics.com' target='_blank'>UK Website Design and Print Marketing</a> - Bluecube Graphics is the perfect solution for all your web and print based design needs. We provide the highest of quality what ever your budget!</p>")
}
else if (r> 0.1 && r < 0.2)
{
document.write("<p><a href='http://www.wrenware.net' target='_blank'>Reliable Hosting Solutions</a> - Wrenware hosting provides the very best in online website hosting. What ever your requirements Wrenware has the perfection hosting solution.</p>")
}
else
{
document.write("<p><a href='http://www.wrenware.net' target='_blank'>Reliable Hosting Solutions</a> - Wrenware hosting provides the very best in online website hosting. What ever your requirements Wrenware has the perfection hosting solution.</p>")
}
else if (r> 0.3 && r < 0.4)
{
document.write("<p><a href='http://www.wrenware.net' target='_blank'>Reliable Hosting Solutions</a> - Wrenware hosting provides the very best in online website hosting. What ever your requirements Wrenware has the perfection hosting solution.</p>")
}
else if (r> 0.4 && r < 0.5)
{
document.write("<p><a href='http://www.wrenware.net' target='_blank'>Reliable Hosting Solutions</a> - Wrenware hosting provides the very best in online website hosting. What ever your requirements Wrenware has the perfection hosting solution.</p>")
}
else if (r> 0.5 && r < 0.6)
{
document.write("<p><a href='http://www.wrenware.net' target='_blank'>Reliable Hosting Solutions</a> - Wrenware hosting provides the very best in online website hosting. What ever your requirements Wrenware has the perfection hosting solution.</p>")
}
else if (r> 0.6 && r < 0.7)
{
document.write("<p><a href='http://www.wrenware.net' target='_blank'>Reliable Hosting Solutions</a> - Wrenware hosting provides the very best in online website hosting. What ever your requirements Wrenware has the perfection hosting solution.</p>")
}
else if (r> 0.7 && r < 0.8)
{
document.write("<p><a href='http://www.wrenware.net' target='_blank'>Reliable Hosting Solutions</a> - Wrenware hosting provides the very best in online website hosting. What ever your requirements Wrenware has the perfection hosting solution.</p>")
}
else if (r> 0.8 && r < 0.9)
{
document.write("<p><a href='http://www.wrenware.net' target='_blank'>Reliable Hosting Solutions</a> - Wrenware hosting provides the very best in online website hosting. What ever your requirements Wrenware has the perfection hosting solution.</p>")
}
else
{
document.write("<p><a href='http://www.wrenware.net' target='_blank'>Reliable Hosting Solutions</a> - Wrenware hosting provides the very best in online website hosting. What ever your requirements Wrenware has the perfection hosting solution.</p>")
}
Frustration is the word of the day!!! Any help?
Heres the code (obviously ill have a number of different links, not the same one(s):
var r=Math.random()
if (r> 0 && r < 0.1)
{
document.write("<p><a href='http://www.bluecubegraphics.com' target='_blank'>UK Website Design and Print Marketing</a> - Bluecube Graphics is the perfect solution for all your web and print based design needs. We provide the highest of quality what ever your budget!</p>")
}
else if (r> 0.1 && r < 0.2)
{
document.write("<p><a href='http://www.wrenware.net' target='_blank'>Reliable Hosting Solutions</a> - Wrenware hosting provides the very best in online website hosting. What ever your requirements Wrenware has the perfection hosting solution.</p>")
}
else
{
document.write("<p><a href='http://www.wrenware.net' target='_blank'>Reliable Hosting Solutions</a> - Wrenware hosting provides the very best in online website hosting. What ever your requirements Wrenware has the perfection hosting solution.</p>")
}
else if (r> 0.3 && r < 0.4)
{
document.write("<p><a href='http://www.wrenware.net' target='_blank'>Reliable Hosting Solutions</a> - Wrenware hosting provides the very best in online website hosting. What ever your requirements Wrenware has the perfection hosting solution.</p>")
}
else if (r> 0.4 && r < 0.5)
{
document.write("<p><a href='http://www.wrenware.net' target='_blank'>Reliable Hosting Solutions</a> - Wrenware hosting provides the very best in online website hosting. What ever your requirements Wrenware has the perfection hosting solution.</p>")
}
else if (r> 0.5 && r < 0.6)
{
document.write("<p><a href='http://www.wrenware.net' target='_blank'>Reliable Hosting Solutions</a> - Wrenware hosting provides the very best in online website hosting. What ever your requirements Wrenware has the perfection hosting solution.</p>")
}
else if (r> 0.6 && r < 0.7)
{
document.write("<p><a href='http://www.wrenware.net' target='_blank'>Reliable Hosting Solutions</a> - Wrenware hosting provides the very best in online website hosting. What ever your requirements Wrenware has the perfection hosting solution.</p>")
}
else if (r> 0.7 && r < 0.8)
{
document.write("<p><a href='http://www.wrenware.net' target='_blank'>Reliable Hosting Solutions</a> - Wrenware hosting provides the very best in online website hosting. What ever your requirements Wrenware has the perfection hosting solution.</p>")
}
else if (r> 0.8 && r < 0.9)
{
document.write("<p><a href='http://www.wrenware.net' target='_blank'>Reliable Hosting Solutions</a> - Wrenware hosting provides the very best in online website hosting. What ever your requirements Wrenware has the perfection hosting solution.</p>")
}
else
{
document.write("<p><a href='http://www.wrenware.net' target='_blank'>Reliable Hosting Solutions</a> - Wrenware hosting provides the very best in online website hosting. What ever your requirements Wrenware has the perfection hosting solution.</p>")
}
Frustration is the word of the day!!! Any help?