This is to test out the ShadowBox.js 3 script to use it in iWeb. With our Custom Flash Player, while making a few adjustments to the main file. The page we will need to edit is our actual page that is showing so this will be ShadowBox.js.html and some coding as well. If you would like to download the original files from the developer here is his site link.
ShadowBox.js 3: http://www.mjijackson.com/shadowbox/index.html
Please be sure to save your work to a folder and keep a backup copy especially if you resave or upload your site to mobile me.
STEP 1: Now this step requires you to use the HTML Sniipet Widget, so we will put in our code that we will be using in this example. Keep in mind that this code is actually linked to a html page which I will show as the last step cause it’s so long, but you should already have it done prior to testing everything out.
<center><a rel="shadowbox;width=640;height=400" class="option" title="ShadowBox.js Demo" href="http://www.WebSite-Name.com/_flv/test_shadowbox.html"><img src="http://www.WebSite-Name.com/_flv/thumbs/shadowbox_demo.jpg" alt="ShadowBox Image" width="320" height="200" border="0" longdesc="http://www.WebSite-Name.com" /></a></center>
STEP 2: Save your work to a FOLDER. Here is my current markup of the code I used in the HTML Snippet: We will need to open up our html page which in my case is Shadowbox.js.html in a html editor. Run a search for this line.
<script type="text/javascript" src="Scripts/iWebSite.js"></script>
STEP 3: Now directly below that line of text is where you will insert the script code shown below for shadowbox, if you place it anywhere else it will not work. Original credit for the above line goes to unclejezza over at iwebfac.org however that is where I stopped and then started out on my own.
<!-- Begin Shadowbox JS -->
<link rel="stylesheet" type="text/css" href="http://www.WebSite-Name.com/shadowbox-js/shadowbox.css">
<script type="text/javascript" src="http://www.WebSite-Name.com/shadowbox-js/shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({
language: 'en',
players: ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv']
});
</script>
<!-- End Shadowbox JS -->
STEP 4: If you only inserted one video to be displayed then in the folder you saved your work to you will find a page titled widget0_markup.html so basically in the html page we created you will run a search for widget0 so on and so on if you added multiple videos.
Find this line of text,.....
<script type="text/javascript"><!--//--><![CDATA[//><!--
var widget0_htmlMarkupURL = ".//ShadowBox.js_files/widget0_markup.html";
//--><!]]></script>
Replace with the code we used in the HTML Snippet,.....
<center><a rel="shadowbox;width=640;height=400" class="option" title="ShadowBox.js Demo" href="http://www.WebSite-Name.com/_flv/test_shadowbox.html"><img src="http://www.WebSite-Name.com/_flv/thumbs/shadowbox_demo.jpg" alt="ShadowBox Image" width="320" height="200" border="0" longdesc="http://www.WebSite-Name.com" /></a></center>
STEP 5: Save your work & upload the newly edited pages to your website or mobile me account. Again make sure you save a copy of it cause it your re-save your iweb page it will erase all your work you just did.
The code below is from the html page I created that was linked to the HTML Snippet I used. However you can link to your video in many different ways I just choose to do it this way.
Now the actual HTML PAGE that I’m linking to is marked up like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="Willy V." />
<meta name="copyright" content="© 2005-2008 iTechster.com and WillyV.com" />
<meta NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<title>Join .VOB Files</title>
</head>
<body bgcolor=#000000 topmargin=0 leftmargin=0 bottommargin=0 rightmargin=0 marginwidth=0 marginheight=0>
<!-- //BEGING: This section contains your flash or video player// -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="willyv" width="640" height="400" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="itechster.swf" />
<param name="allowFullScreen" value="true" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<param name="flashvars" value="content=[filename][amp]start=[seek],http://www.willyv.com/_flv/shadowbox_demo.mov&thumbs=http://www.willyv.com/_flv/thumbs/shadowbox_demo.jpg&duration=31" />
<embed src="http://www.willyv.com/_flv/itechster.swf" quality="high" bgcolor="#000000" width="640" height="400" name="willyv" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowFullScreen="true" flashvars="content=[filename][amp]start=[seek],http://www.willyv.com/_flv/shadowbox_demo.mov&thumbs=http://www.willyv.com/_flv/thumbs/shadowbox_demo.jpg&duration=31" />
</object>
<!-- //END: This section contains your flash or video player// -->
</body>
</html>
Have Fun & Enjoy....!!!!!!!!!
