Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-15-2002, 02:34 PM   PM User | #1
donbmjr
New Coder

 
Join Date: Dec 2002
Location: Boca Raton , Fl
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
donbmjr is an unknown quantity at this point
Problem with Popup Window with a dropdown box inside

Please click on the Cartoons, News or 2002 finishes to see what I am trying to do.
http://users.adelphia.net/~donbmjr/

The popup windows at the above site we created by an action in Adobe GoLive they seem to work Ok put have at least one really serious flaw. When one of the popup windows comes up and you
Click in another area of the page the popup drops to the back(normal), but if you click on another link the window for that link STAYS minimized on the task bar a serious navigation problem for a visitor.

I have been working to solve this problem for four days. I am an
AMATURE at web page design and java but am persistent and trying as hard as I can.

Below is the java script from one of the popup window pages, perhaps there are better scripts or ways to do this and I would appreciate your ideas, we will have many of these types of popups.

I am also having a major problem calling up these popups
when using other Java Scripts to instead of using the Action in Golive.
Is there a way to call up a popup window from a menu selection?
For some reason I have a mental block on the call up part of a script, so if you would be kind enough when telling me how to call up I need GREAT detail.
I am tired and frustrated and have posted at a several places and few want to respond, I have hopes that this is my last stop. I have patience I have many talents but I am struggling here

Address of one of the popup’s

http://users.adelphia.net/~donbmjr/c.../cartoons.html

code for one of the dropdown menu scripts

<html>

<head>

<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 6">
<title>cartoons</title>

<body bgcolor="#ffffff" leftmargin="10" marginheight="0" marginwidth="10" topmargin="0">
<table width="550" border="0" cellspacing="2" cellpadding="0" align="left">
<tr>
<td><SCRIPT LANGUAGE="JavaScript">
var Image_array = new Array();
//new Array("Image location",width,height,"discription image")
Image_array[0] = new Array("tonyhappyface.jpg",500,300,"Stewart puts on a happy face");
Image_array[1] = new Array("keepingtonyout.gif",500,300,"Keeping Tony out of trouble");
Image_array[2] = new Array("rookiejimmie.gif",500,300,"Rookie Jimmie");
Image_array[3] = new Array("whereistony.gif",500,300,"Where is Tony Stewart");
Image_array[4] = new Array("tonybristol.jpg",500,300,"Tony takes over Bristol");
Image_array[5] = new Array("tonyfillsup.jpg",500,300,"Stewart fuels up");
Image_array[6] = new Array("bewarethe.gif",500,300,"Beware the Home Depot driver");
//If you want to add more images use Image_array[4]= ...


function setf(thisv)
{
img_changer.src = Image_array[thisv][0];
img_changer.style.width = Image_array[thisv][1];
img_changer.style.height = Image_array[thisv][2];
}
</script>

<center>

<select onchange="setf(this.selectedIndex)">
<script language=javascript>
for(i=0;i<Image_array.length;i++)
{
document.write("<option>" + Image_array[i][3]);
}
</script>
</select>

<br><br>
<img src="(EmptyReference!)" name=img_changer border=1>
</center>

<script language=javascript>
setf(0);
</script></td>
</tr>
</table>
<p></p>
</body>

</html>

Thanks

Don Miller
donbmjr is offline   Reply With Quote
Old 12-15-2002, 03:43 PM   PM User | #2
beetle
Senior Coder

 
Join Date: Aug 2002
Posts: 3,467
Thanks: 0
Thanked 0 Times in 0 Posts
beetle has a little shameless behaviour in the past
Add this to the HTML of each of your popup pages...

<body onload="self.focus();">
__________________
My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
“Minds are like parachutes. They don't work unless they are open”
“Maturity is simply knowing when to not be immature”
beetle is offline   Reply With Quote
Old 12-15-2002, 04:49 PM   PM User | #3
donbmjr
New Coder

 
Join Date: Dec 2002
Location: Boca Raton , Fl
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
donbmjr is an unknown quantity at this point
focus line

when you use focus NONE of items in the drop down menu will work
donbmjr is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:26 AM.


Advertisement
Log in to turn off these ads.