Frame randomizer

[Closed]
Report
Posts
2
Registration date
Wednesday January 23, 2013
Status
Member
Last seen
January 24, 2013
-
Posts
4476
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
August 2, 2020
-
Can someone help me in this. On the spectrum of developers and designers I am more on the end of the designer, therefore I humbly ask for your assistance. (I am not completely inept, only partially so.) :) Thank you in advance for your help.

I have a frames page in which I would like context to appear randomly. When a viewer comes to the page book #2 might be featured. Then the viewer refreshes the page and book #5 might be featured.

I have found code to make things come up randomly from a button push, but how can that be done in a frame-set webpage? If I put a randomizer button on the page it misses the point. I need it to show a content frame randomly when the frame-set page first comes up.

Does this solution even exist? Would any of you be so gracious to help me here? I'd greatly appreciate it. Thank you.

1 reply

Posts
4476
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
August 2, 2020
768
I am guessing you are talking about a web page. You can try firing the button functionality from OnLoad of body

see this
http://www.w3schools.com/jsref/event_body_onload.asp