Jump to content

ramdom "img"


mikemanx2

Recommended Posts

hey im remaking my site i use to have this code but i lost it so can you gets help me with this...a random picture in js plz help

Link to comment
Share on other sites

I have one at work that is easy to use. If you can wait until Monday, I'd be glad to share it - unless someone wishes to share one sooner.

Link to comment
Share on other sites

ok and ya i no its not hard it takes like 5min to write i just like dident program js for like a year so i forgot most of it but i still remember my other lang.. Mikemanx.comthis is the site im desining so take a look i started it 5hours ago i did all the programming and all the images im working on the database stuff and login stuff right now but i just wanted to post it so i can get the code so i can move on in the java script standpointAll you kinda have to do is make a random array

Link to comment
Share on other sites

lol i just fond it in examples in the javascript section its this<html><body><script type="text/javascript">var r=Math.random()if (r>0.5) {document.write("<a href='http://www.w3schools.com'>Learn Web Development!</a>")}else{document.write("<a href='http://www.refsnesdata.no'>Visit Refsnes Data!</a>")}</script></body></html>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...