View Full Version : Random iFrame problem

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

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>')
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.

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

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

In what way? In which browser(s)?

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