NewComputer
Mar 19th 2005, 10:19 am
Here is what I have so far:
Very rudimentary I know, but here it is:
var rand_int = Math.floor(Math.random()*4);
var photos = new Array(4)
photos[0] = '<img src="images/smittys-logo.gif">';
photos[1] = '<img src="images/rickys-logo.jpg">';
photos[2] = '<img src="images/rayssecurity.jpg">';
photos[3] = '<img src="images/purdys-logo.jpg">';
document.write(photos[rand_int]);
This accomplishes most of what I need, EXCEPT I would like to add above the image the actual company name. eg:
Team sponsored by (then company name inserted from .js here) <br>
(company logo inserted here by .js)
Very rudimentary I know, but here it is:
var rand_int = Math.floor(Math.random()*4);
var photos = new Array(4)
photos[0] = '<img src="images/smittys-logo.gif">';
photos[1] = '<img src="images/rickys-logo.jpg">';
photos[2] = '<img src="images/rayssecurity.jpg">';
photos[3] = '<img src="images/purdys-logo.jpg">';
document.write(photos[rand_int]);
This accomplishes most of what I need, EXCEPT I would like to add above the image the actual company name. eg:
Team sponsored by (then company name inserted from .js here) <br>
(company logo inserted here by .js)