Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-03-2007, 11:50 PM   #1
StickyGreen
.
 
StickyGreen's Avatar
 
Industry Role:
Join Date: Oct 2003
Posts: 13,076
Good randomizer code?

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?
StickyGreen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-04-2007, 12:06 AM   #2
GreyWolf
So Fucking Banned
 
Join Date: Jun 2007
Posts: 2,036
Quote:
Originally Posted by StickyGreen View Post
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?
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
GreyWolf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-04-2007, 12:15 AM   #3
StickyGreen
.
 
StickyGreen's Avatar
 
Industry Role:
Join Date: Oct 2003
Posts: 13,076
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...
StickyGreen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-04-2007, 01:12 AM   #4
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
with php or javascript /ajax ?
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-04-2007, 01:20 AM   #5
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
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.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-04-2007, 01:22 AM   #6
StickyGreen
.
 
StickyGreen's Avatar
 
Industry Role:
Join Date: Oct 2003
Posts: 13,076
Quote:
Originally Posted by SmokeyTheBear View Post
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>
Cool... I'm gonna try that...
StickyGreen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-04-2007, 01:38 AM   #7
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
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 Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-04-2007, 01:49 AM   #8
StickyGreen
.
 
StickyGreen's Avatar
 
Industry Role:
Join Date: Oct 2003
Posts: 13,076
Quote:
Originally Posted by SmokeyTheBear View Post
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>
Thanks Smokey... works like a charm...
StickyGreen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-04-2007, 02:27 AM   #9
GreyWolf
So Fucking Banned
 
Join Date: Jun 2007
Posts: 2,036
Quote:
Originally Posted by StickyGreen View Post
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...
Damn.. sorry man. Webmasters!

If you still want this - just bump the thread. Got their version lying around someplace
GreyWolf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.