I've been trying to find a way to make webpages open using the rnd (random) function, but have been unsuccessful so far. For example, if I start out in my index.htm page, I would like to have a clickable link (say, a hotspot), where the "jump" to three or more html pages would be conditional on the random number generated by the random number function.
In other words, after I click on that hotspot or link, the user would be shunted over to either page1.htm, page2.htm, or page3.htm. I've seen the rnd thing work on the message boxes, but can't get it to work in this case.
I'd appreciate any suggestions on how to do this...
Thanks.
(Edited by april thunder at 3:02 am on Aug. 2, 2003)
(Edited by april thunder at 3:03 am on Aug. 2, 2003)
Posted on: 3:01 am on August 2, 2003
EBookCompiler
Make a text file called random.as
SET('xx',RND(2)+1) NAVIGATE('page{xx}.htm')
in the HTML, make a link which goes to #!random.as
[A HREF="#!random.as"]Click here[/A]
(change the [ ] to less-than great-than signs)
First line of script sets variable xx to a random number, 1, 2 or 3
Second line navigates to page1.htm, page2.htm page3.htm
With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.
Disclosure:
Our company's websites' content (including this website's content) includes advertisements for
our own company's websites, products, and services,
and for other organization's websites, products, and services.
In the case of links to other organization's websites,
our company may receive a payment, (1) if you purchase products or services,
or (2) if you sign-up for third party offers, after following links from this website.
Unless specifically otherwise stated, information about other organization's products and services,
is based on information provided by that organization,
the product/service vendor, and/or publicly available information - and should
not be taken to mean that we have used the product/service in question.
Additionally, our company's websites contain some adverts which we are paid
to display, but whose content is not selected by us, such as Google AdSense ads. For more
detailed information, please see Advertising/Endorsements Disclosures
Our sites use cookies, some of which may already be set on your computer. Use of our site
constitutes consent for this. For details, please see Privacy.
Click privacy for information about our company's privacy, data collection and data retention policies, and your rights.