PDA

View Full Version : okay-dreamweaverCS3-education-PSCS3-webgallery


sushpie20
05-02-2008, 11:34 AM
Just built site for artist www.icanonlyemagine.com and the automated web gallery -new browser window but then opens and plays on portfolio page too...HELP..SUSHPIE20:eek::cool::

mitzs
05-02-2008, 01:09 PM
You have you gallery link in the head tag. Shouldn't it be in an external css style sheet? I am not sure, but I think as long as that link is embedded in your html like that it is going to show on that page. Hopefully someone with more exp will be along soon.

mitzs
05-02-2008, 01:17 PM
or try adding your img tag inside your script file and see what happens then.

ldrain
05-02-2008, 05:22 PM
i can tell you that somewhere you need to put a '#' in the link for the gallery. since i can't find where that may be, i can't help any further.

never mind i think i found it. the relevant code that you have looks like this:


<a href="webauto/index.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('gallery','','portfolio/images/portfoliogalleryover.gif',1)"><img src="portfolio/images/portfoliogallery.gif" name="gallery" width="175" height="486" border="0" id="gallery" onclick="MM_openBrWindow('webauto/index.htm','icanonlyemaginegallery','scrollbars=ye s,width=600,height=500')" /></a>


what i'm guessing you need to change (your html is very messy, probably due to DW) is in the very first part of the code. it should look like this:


<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('gallery','','portfolio/images/portfoliogalleryover.gif',1)"><img src="portfolio/images/portfoliogallery.gif" name="gallery" width="175" height="486" border="0" id="gallery" onclick="MM_openBrWindow('webauto/index.htm','icanonlyemaginegallery','scrollbars=ye s,width=600,height=500')" /></a>


the difference is in the <a> tag and the '#' as your actual link. what this does is tell the browser to ignore the HTML code since you have your Flash element opening up the gallery in the new window.

hope that helps, you'll need to view the code in order to make that change.

ldrain
05-02-2008, 05:24 PM
ok it's not a flash object, those MM_ things are DW talk (mental note to self :rolleyes:)