All the randomizer codes I can find only do specific things like text or images. I need to randomize a whole block of html that includes a .flv movie and some text links. Is there a script that can randomize something like that?
Good randomizer code?
Collapse
X
-
Tags: None
-
No problemo SG - You are talking about my fav subject - "web blocks"
As an intro - try the simple script at this site - it's called Randex -
http://www.teca-scripts.com/free/
OK.. it's an easy example, (we have developed this concept a lot further and more complex to cover many things), but by using the base concept you can deliver up specific "web block" sizes to fit any page. Web blocks can contain "anything" - images, html, feeds, text links etc
-
I goto free downloads but I can't get it to work. I put my name and email address and click download but it just refreshes...
Comment
-
-
a simple way would be just to place your html blocks into blank pages then call an iframe randomly with javascript
like place your random html into seperate html pages
random0.html
thru
random4.html
Code:<script> var rn= Math.floor(Math.random()*5); document.write("<iframe width=800 height=100 src=random" + rn + ".html></iframe>"); </script>hatisblack at yahoo.comComment
-
Cool... I'm gonna try that...a simple way would be just to place your html blocks into blank pages then call an iframe randomly with javascript
like place your random html into seperate html pages
random0.html
thru
random4.html
Code:<script> var rn= Math.floor(Math.random()*5); document.write("<iframe width=800 height=100 src=random" + rn + ".html></iframe>"); </script>
Comment
-
or with php
<?php include('file'.mt_rand(1,5).'.html';?>Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip ManagerComment
-
Thanks Smokey... works like a charm...a simple way would be just to place your html blocks into blank pages then call an iframe randomly with javascript
like place your random html into seperate html pages
random0.html
thru
random4.html
Code:<script> var rn= Math.floor(Math.random()*5); document.write("<iframe width=800 height=100 src=random" + rn + ".html></iframe>"); </script>
Comment
-
Comment

Comment