lindsayanng
08-08-2008, 06:19 PM
Hi there - me again.
I am working on a photography site for my husband and I am having a HECK of a time with lightbox. Weird, because i have been able to install and code a number of things on my php website, and what LOOKS like it should be simple, is NOT.
Anyways, I uploaded lightbox 2, unzipped, added all the files in the js file, put the header code in, and added the rel=lightbox into the image link and NOTHING. I can not get it to work!! The weirdest thing is that now, i can not preview my site in design mode on dreamweaver, but it all pulls up correctly on a web preview?
WHY IS THIS HAPPENING??
BTW, here is my header code:
<html>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<!--
//function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) { // v4.01
// newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
// newWindow.document.open();
// newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');
// if (imageType == "swf"){
// newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
// newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
// newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
// newWindow.document.write('</embed></object>'); }else{
// newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); }
// newWindow.document.write('</body></html>');
// newWindow.document.close();
// newWindow.focus();
//}
//-->
</script>
<!-- InstanceBegin template="/Templates/bscmain.dwt" codeOutsideHTMLIsLocked="false" -->
<!-- InstanceBeginEditable name="doctitle" -->
<title>Connecticut Photographer Matthew Branscombe: Portraits</title>
<meta name="description" content="A collection of photography by Matt Branscombe including fashion, portraits, pets, BMX, and abstract photography. Souther Connecticut">
<meta name="keywords" content="cause&effect,cause/effect 2008,fashion photography,springfield MA,Salon Chiala,portrait,Lindsay Branscombe,matthew branscombe,mattyb,matty b,photography east haven,east haven,bscphoto.com,bscphoto">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="js/lightbox.css" type="text/css" media="screen" />
<body onload="MM_preloadImages('js/menu_on.gif')...;initLightbox()">
I am working on a photography site for my husband and I am having a HECK of a time with lightbox. Weird, because i have been able to install and code a number of things on my php website, and what LOOKS like it should be simple, is NOT.
Anyways, I uploaded lightbox 2, unzipped, added all the files in the js file, put the header code in, and added the rel=lightbox into the image link and NOTHING. I can not get it to work!! The weirdest thing is that now, i can not preview my site in design mode on dreamweaver, but it all pulls up correctly on a web preview?
WHY IS THIS HAPPENING??
BTW, here is my header code:
<html>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<!--
//function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) { // v4.01
// newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
// newWindow.document.open();
// newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');
// if (imageType == "swf"){
// newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
// newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
// newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
// newWindow.document.write('</embed></object>'); }else{
// newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); }
// newWindow.document.write('</body></html>');
// newWindow.document.close();
// newWindow.focus();
//}
//-->
</script>
<!-- InstanceBegin template="/Templates/bscmain.dwt" codeOutsideHTMLIsLocked="false" -->
<!-- InstanceBeginEditable name="doctitle" -->
<title>Connecticut Photographer Matthew Branscombe: Portraits</title>
<meta name="description" content="A collection of photography by Matt Branscombe including fashion, portraits, pets, BMX, and abstract photography. Souther Connecticut">
<meta name="keywords" content="cause&effect,cause/effect 2008,fashion photography,springfield MA,Salon Chiala,portrait,Lindsay Branscombe,matthew branscombe,mattyb,matty b,photography east haven,east haven,bscphoto.com,bscphoto">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="js/lightbox.css" type="text/css" media="screen" />
<body onload="MM_preloadImages('js/menu_on.gif')...;initLightbox()">