PDA

View Full Version : Random iFrame problem



cursed
12-17-2006, 07:14 PM
1) Script Title:
Random Iframe Content
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/randomiframe.htm
3) Describe problem:
Is there a possible way to show something else if random iframe doesn't load?

jscheuer1
12-17-2006, 07:25 PM
Due to what?

If it is due to there being no javascript active in the browser, this placed just before or after the script would do it:


<noscript>alternate content here</noscript>

If it is due to the browser not supporting the standards required by the script (additions red):


if (ie||dom)
document.write('<iframe id="dynstuff" src="" '+iframeprops+'></iframe>')
else
document.write('alternate content here');


If it is due to the random page being unavailable, that is really your responsibility. Just make sure that all pages listed are available to the script.

chechu
12-17-2006, 09:53 PM
the example in DD does not do what it says.

jscheuer1
12-17-2006, 10:07 PM
the example in DD does not do what it says.

In what way? In which browser(s)?

cursed
12-22-2006, 07:36 PM
thanks, works perfectly.