jazbus
12-10-2008, 05:29 AM
1. Script: Dynamic Ajax Content
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
2. My website that I'm using it on www.universum.com.au
3. Problem i'm having is trying to load a flash gallery on the gallery page. I have tried the following code:
<a href="javascript:contentpage('Containers/Gallery.htm', 'container'); loadobjs('Containers/Gallery/swfobject.js')">
4. The code i'm using for the Gallery.htm file looks like this:
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- Download SimpleViewer at www.airtightinteractive.com/simpleviewer -->
<script type="text/javascript" src="Gallery/swfobject.js"></script>
</head>
<center><font size="2"><a href="http://www.macromedia.com/go/getflashplayer/" target="_blank"><img src="Images/Flash-Player.jpg" width="158" height="39" border="0" /></a><p>This gallery requires JavaScript and Adobe Flash Player.<br>
This Gallery is currently unavailable but will be coming soon!!!</font></center></div>
<script type="text/javascript">
var fo = new SWFObject("Gallery/viewer.swf", "viewer", "826", "370", "0", "#000000");
// SIMPLEVIEWER CONFIGURATION OPTIONS
// To use an option, uncomment it by removing the "//" at the start of the line
// For a description of config options, go to:
// http://www.airtightinteractive.com/simpleviewer/options.html
fo.addVariable("xmlDataPath", "Gallery/gallery.xml");
//fo.addVariable("firstImageIndex", "5");
//fo.addVariable("langOpenImage", "Open Image in New Window");
//fo.addVariable("langAbout", "About");
//fo.addVariable("preloaderColor", "0xFFFFFF");
fo.write("flashcontent");
</script>
Please note that if I open the gallery.htm file directly it works fine. e.g see below link:
http://www.universum.com.au/containers/gallery.htm
Thankyou in advance,
Jaron
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
2. My website that I'm using it on www.universum.com.au
3. Problem i'm having is trying to load a flash gallery on the gallery page. I have tried the following code:
<a href="javascript:contentpage('Containers/Gallery.htm', 'container'); loadobjs('Containers/Gallery/swfobject.js')">
4. The code i'm using for the Gallery.htm file looks like this:
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- Download SimpleViewer at www.airtightinteractive.com/simpleviewer -->
<script type="text/javascript" src="Gallery/swfobject.js"></script>
</head>
<center><font size="2"><a href="http://www.macromedia.com/go/getflashplayer/" target="_blank"><img src="Images/Flash-Player.jpg" width="158" height="39" border="0" /></a><p>This gallery requires JavaScript and Adobe Flash Player.<br>
This Gallery is currently unavailable but will be coming soon!!!</font></center></div>
<script type="text/javascript">
var fo = new SWFObject("Gallery/viewer.swf", "viewer", "826", "370", "0", "#000000");
// SIMPLEVIEWER CONFIGURATION OPTIONS
// To use an option, uncomment it by removing the "//" at the start of the line
// For a description of config options, go to:
// http://www.airtightinteractive.com/simpleviewer/options.html
fo.addVariable("xmlDataPath", "Gallery/gallery.xml");
//fo.addVariable("firstImageIndex", "5");
//fo.addVariable("langOpenImage", "Open Image in New Window");
//fo.addVariable("langAbout", "About");
//fo.addVariable("preloaderColor", "0xFFFFFF");
fo.write("flashcontent");
</script>
Please note that if I open the gallery.htm file directly it works fine. e.g see below link:
http://www.universum.com.au/containers/gallery.htm
Thankyou in advance,
Jaron