This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > April 2004 > Can i make java pop up off of a DW drop menu?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Can i make java pop up off of a DW drop menu?
twisterspread

2004-04-21, 2:51 pm

[b]Problem or Goal: [/b] I am trying to integrate a javascript pop up code into
the existing drop down menu code in a dreamweaver .htm page. Template has been
exported from fireworks to dreamweaver with java drop down menu's across the
top.

[b]Example.[/b] Someone rolls over the navigation menu, a drop down appears
with 5 links, one of those links needs to go to a intermediary page (disclaimer
page) before refreshing the main page to the new URL,

The end-user clicks continue on the intermediary pop up window(which is a
close pop window script), and then is brought to the intended URL.

[b]Commentary[/b] Code for a pop up is pretty easy and simple to implement
onto image or text links, however to insert the pop up javascript inside the
existing drop down menu javascript is presenting a problem. Can anyone help?
Is there perhaps an extension for dreamweaver/fireworks that can allow such a
pop up link to be placed within the dreamweaver drop down menu? I have searched
the forums with little to no results.



<!------------------------------------------------------------------------------


[b]This is the javascript pop up code I am trying to integrate into the drop
down menu to display the pop up page:[/b]

<head>
<SCRIPT language="JavaScript">
<!--
function popUp(url) {

sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menub
ar=1,scrollbars=1,resizable=1,width=50

0,height=450');
self.name = "mainWin";
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</SCRIPT>
</head>


<!------------------------------------------------------------------------------

<body>

<a href="java script:;"
onClick="MM_openBrWindow('disclaimer.htm','PopUp','width=450,height=300')"><font
size="2"
face="Arial, Helvetica, sans-serif"><b>WORD</b></font></a>
</body>



<!------------------------------------------------------------------------------





<!------------------------------------------------------------------------------

[b]Here is the original code for mmloadmenu's and the fireworks template
exported to dreamweaver:[/b]


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function mmLoadMenus() {
if (window.mm_menu_0415113720_0) return;
window.mm_menu_0415113720_0 = new Menu("root",66,16,"Verdana, Arial,
Helvetica,

sans-serif",10,"#000000","#ffffff","#d9dad6","#14266d","left","middle",3,0,1000,
-5,7,true,true,true,0,true,true);

mm_menu_0415113720_0.addMenuItem("Link0","location='http://www.example.com/examp
le.htm'");
mm_menu_0415113720_0.fontWeight="bold";
mm_menu_0415113720_0.hideOnMouseOut=true;
mm_menu_0415113720_0.menuBorder=1;
mm_menu_0415113720_0.menuLiteBgColor='#ffffff';
mm_menu_0415113720_0.menuBorderBgColor='#777777';
mm_menu_0415113720_0.bgColor='#555555';
window.mm_menu_0415114122_1 = new Menu("root",184,16,"Verdana, Arial,
Helvetica,

sans-serif",10,"#000000","#ffffff","#d9dad6","#14266d","left","middle",3,0,1000,
-5,7,true,true,true,0,true,true);

[b]mm_menu_0415114122_1.addMenuItem("Link1","location='https://www.wantintemedia
rypopupforthislink.com/'");[/b]

mm_menu_0415114122_1.addMenuItem("Link2","location='http://www.example2.com/'");

mm_menu_0415114122_1.addMenuItem("Link3","location='http://www.example3.com/'");

mm_menu_0415114122_1.addMenuItem("Link4","location='http://www.example4.com/'");

mm_menu_0415114122_1.addMenuItem("Link5","location='http://www.example5.com/'");

mm_menu_0415114122_1.addMenuItem("Link6","location='http://www.example6.com/'");
mm_menu_0415114122_1.fontWeight="bold";
mm_menu_0415114122_1.hideOnMouseOut=true;
mm_menu_0415114122_1.menuBorder=1;
mm_menu_0415114122_1.menuLiteBgColor='#ffffff';
mm_menu_0415114122_1.menuBorderBgColor='#777777';
mm_menu_0415114122_1.bgColor='#555555';
mm_menu_0415114122_1.writeMenus();
} // mmLoadMenus()

//-->
</script>
<script language="JavaScript1.2" src="mm_menu.js"></script>
</HEAD>

<BODY bgcolor="#F7E9D5" link="#000099" alink="#3333FF" vlink="#990000"
background="images/backgrnd.gif"><DIV
align=center>
<script language="JavaScript1.2">mmLoadMenus();</script>
<table border="0" cellpadding="0" cellspacing="0" width="573">
<!-- fwtable fwsrc="Mastheadfile.png" fwbase="example.gif"
fwstyle="Dreamweaver" fwdocid = "removed" fwnested="0"

-->
<tr>
<td><img src="images/spacer.gif" width="81" height="1" border="0"
alt=""></td>
<td><img src="images/spacer.gif" width="82" height="1" border="0"
alt=""></td>
<td><img src="images/spacer.gif" width="120" height="1" border="0"
alt=""></td>
<td><img src="images/spacer.gif" width="108" height="1" border="0"
alt=""></td>
<td><img src="images/spacer.gif" width="90" height="1" border="0"
alt=""></td>
<td><img src="images/spacer.gif" width="73" height="1" border="0"
alt=""></td>
<td><img src="images/spacer.gif" width="19" height="1" border="0"
alt=""></td>
<td><img src="images/spacer.gif" width="1" height="1" border="0"
alt=""></td>
</tr>
<tr>
<td><img name="example_r1_c1" src="images/example_r1_c1.gif" width="81"
height="8" border="0" alt=""></td>
<td colspan="5"><img name="example_r1_c2" src="images/example_r1_c2.gif"
width="473" height="8" border="0"

alt=""></td>
<td><img name="example_r1_c7" src="images/example_r1_c7.gif" width="19"
height="8" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="8" border="0"
alt=""></td>
</tr>
<tr>
<td><a href="http://www.example.com/"><img name="example_r2_c1"
src="images/example_r2_c1.gif" width="81"

height="69" border="0" alt=""></a></td>
<td colspan="5"><img src="images/mastheadheader.gif" width="473"
height="69"></td>
<td><img name="example_r2_c7" src="images/example_r2_c7.gif" width="19"
height="69" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="69" border="0"
alt=""></td>
</tr>
<tr>
<td><a href="http://www.example.com/examplea.htm"
onMouseOut="MM_startTimeout();"


onMouseOver="MM_showMenu(window.mm_menu_0415113720_0,21,18,null,'example_r3_c1')
;"><img name="example_r3_c1"

src="images/example_r3_c1.gif" width="81" height="18" border="0"
alt=""></a></td>
<td><a href="http://www.example.com/exampleb.htm"><img
name="example_r3_c2" src="images/example_r3_c2.gif"

width="82" height="18" border="0" alt=""></a></td>
<td><a href="http://www.example.com/examplec.htm"><img
name="example_r3_c3" src="images/example_r3_c3.gif"

width="120" height="18" border="0" alt=""></a></td>
<td><a href="http://www.example.com/exampled.htm"><img
name="example_r3_c4" src="images/example_r3_c4.gif"

width="108" height="18" border="0" alt=""></a></td>
<td><a href="#" onMouseOut="MM_startTimeout();"


onMouseOver="MM_showMenu(window.mm_menu_0415114122_1,-15,18,null,'example_r3_c5'
);"><img name="example_r3_c5"

src="images/example_r3_c5.gif" width="90" height="18" border="0"
alt=""></a></td>
<td><a href="http://www.example.com/examplee.htm"><img
name="example_r3_c6" src="images/example_r3_c6.gif"

width="73" height="18" border="0" alt=""></a></td>
<td><img name="example_r3_c7" src="images/example_r3_c7.gif" width="19"
height="18" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="18" border="0"
alt=""></td>
</tr>
</table>


<!------------------------------------------------------------------------------




twisterspread

2004-04-21, 3:00 pm

bump
Murray *TMM*

2004-04-21, 3:00 pm

unbump - posted immediately after your initial post of this question -

It would be pretty easy to do if you were not using those menus. Are you
open to change? If not, read this -

http://apptools.com/rants/jsmenu.php

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"twisterspread" <webforumsuser@macromedia.com> wrote in message
news:c60mi4$4pr$1@forums.macromedia.com...
> bump



twisterspread

2004-04-21, 3:03 pm

Thanks to all who have replied. IF anyone is interested in a solution for this
problem that i posted originally. After some messing around , i ran across
"A" solution.... here's what i got.


mm_menu_0415114122_1.addMenuItem("ExampleLinkName","window.open('popup.htm',
'_blank','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars
=no,resizable=yes,width=520,height=300');");


I was completely confused, pretty simple now that i look at it tho...
hope this helps someone besides me :)



Murray *TMM*

2004-04-21, 3:10 pm

Yuck. DW pop-up menus....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"twisterspread" <webforumsuser@macromedia.com> wrote in message
news:c61g36$cue$1@forums.macromedia.com...
> Thanks to all who have replied. IF anyone is interested in a solution for

this
> problem that i posted originally. After some messing around , i ran

across
> "A" solution.... here's what i got.
>
>
>

mm_menu_0415114122_1.addMenuItem("ExampleLinkName","window.open('popup.htm',
>

'_blank','toolbar=no,location=no,directories=no,status=yes,menubar=no,scroll
bars
> =no,resizable=yes,width=520,height=300');");
>
>
> I was completely confused, pretty simple now that i look at it tho...
> hope this helps someone besides me :)
>
>
>



Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews