Hey guys i am looking for something that can rotate 2 html codes every times page is refreshed or another url on same domain in visited. Any help would be greatly appreciated
php would be the easiest way. Here is the logic GENERATE RANDOM NUMBER BETWEEN 0 and 1 IF NUMBER = 0 --> SHOW FIRST HTML CODE IF NUMBER = 1 --> SHOW SECOND HTML CODE . . . Continue it as much as you want. PHP takes care of this server side so it will determine what block of HTML code to send to the user
Hi, You try This code using java script rotate your Page on load.... <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> var urls =['your site address','http://www.google.com'];var pos =0; next(); setInterval(next,5000);// every 5 seconds functionnext() { if(pos == urls.length) pos =0;// reset the counter document.getElementById('rotate').src = urls[pos]; pos++; } </head> <body> <iframeid="rotate">Some text</iframe> </body> </html>
Move your content with this coad <marquee>Hello world</marquee> Copy and pest your website then Hello world mooving Thanks you need more help go here.. http://w3schools.com/