Click to See Complete Forum and Search --> : Dreamweaver Double PopUp
jamesx521
06-04-2003, 06:51 PM
My problem is:
I'm a designer not a programer. I use a combination of Fireworks and Dreamweaver, and behaviours for pop up windows in Dreamweaver: something that I've been told not to do. Also I don't know anything about Java Script, but was given some usefull code. However if you go to my site www.xn3ct.net, there are 3 graphics on the right side that link to resized pop up windows. Once you click there are 2 windows that pop up:
1. The resized graphic window - which is what I want (I use behaviours for that), and
2. A normal size window with the same graphic centered. - which is NOT what I want.
How do I get rid off of the big window.
This is what I'm guessing. I should not use behaviors in addition to the link for opening. And/or if I use the two together, one of the window should open, in "self" not in a new window.
Can someone send me the right code, or any other help will be appreciated. Thanks.
Khalid Ali
06-04-2003, 08:22 PM
it may not be the best solution,but it will work...
remove target="_blank"
jamesx521
06-04-2003, 11:37 PM
I did take out the "_blank" on Dreamweaver, but somebody checking my site told me that it doesn't work, so I put for target: "_blank" again on all of them. Could it be one of the other ones "_self", or "_parent" for target?
Another thing that is weird is that I can't see any problems with my site when I check the site from my computer. To make sure the site is not called from the hard drive of my PC I put the site folder in the thrash, but still all is fine when I use my computer. And when I check it on other computers, out of home - the double pop ups are present.
So, if anyone out there has any solution to getting rid off of the 9 image double pop ups on my site www.xn3ct.net let me know. Thanks.
james
Khalid Ali
06-05-2003, 12:20 AM
I think I know whats going on..
add the followingin your a nchortag code
onclick="return false;"
so that for eg first link will look like this
<td rowspan="4"><a href="channel87.htm" onclick="return false;" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('r_channel87','','Ready%20Cut%20JPGS/r_channel87.jpg',1);" ><img name="r_channel87" alt="r_channel87" border="0" src="Ready%20Cut%20JPGS/channel87.jpg" width="140" height="103" onMouseDown="MM_openBrWindow('channel87.htm','channel87window','width=260,height=591')"></a></td>
Do the same for all others..
This will work..
jamesx521
06-05-2003, 05:10 PM
I did the changes you told me. I applied the code on the right place for the 9 images the way you wrote it above.
onclick="return false;"
and also
alt="r_channel87" - or whatever other name it was.
both of which were not in my original code.
and also I removed the "_blank"
But once again I rely on people telling me how it looks, because on my PC everything works fine. The guy that tells me about the double popups uses a MAC. I wonder if there's any problem with that.
And how come I don't get the double popups on my PC? I removed all of my files to the thrash can to make sure the site doesn't call them from my hard drive, then I cleared the history and emptied the cache on IExplorer. Everything seems fine to me.
Anyway, check the 9 image links on the site please. www.xn3ct.net
If that doesn't work. I'll get rid off using the behaviours and/or will redesign the whole site. But I would need the code for specific size windows because I still want to use the same resized popup window trick.
james
Khalid Ali
06-05-2003, 05:31 PM
It works fine for me I just checked with NS6+ browser..and if it works for NS6+ browsers I am 99.99% positive that JavaScript and HTML part are correct.
Have your friend test it with Netscape browsers I bet your friend must be using some a browse with poor JavaScript compliance....(could be IE or some other browser.)
jamesx521
06-05-2003, 07:13 PM
He told me that the site works on his browser now w/o the double pop-ups, exept for the resume part, it still has a double pop up. But the resume is the only part that I didn't update. Now, I'll do the same code for that too.
Thanks for your help.
james
Khalid Ali
06-05-2003, 07:32 PM
:p
You are welcome