the css menu is not a problem

Nov 18, 2008

Pop Up window

I'm working on this site http://focashairsalon.com/test1.html and on the gallery button I want a pop-window that is smaller then the main page so they are not taken off the page and can close when done. How would I do that?  thanks




Answer:



Hi,
you can do it via simple javascript code,

the menu button code:
<div><a href='javascript:new_window();'>Gallery</a></div>

The javascript code:
<script>
function new_window(){
  window.open('http://www.pageresource.com/jscript/jex5.htm','mywindow','width=400,height=200')
  }
</script>

http://www.pageresource.com/jscript/jwinopen.htm

Regards
Dmitry
f-source.com




11 comments:

All Kids Lamps, Baby and Kids Lighting said...

My flash menu does show up perfectly in Firefox but in internet explorer I'm missing a few menu buttons> Can anyone help me? here is our site: http://www.allkidsoutdoortoys.com
I'm using dreamweaver
thanks
Will

dmpost said...

Hi Will,
1. Format your code, one line - one button.
2. Some of your buttons missing closing tag < /a>

Regards
Dmitry
f-source.com

All Kids Lamps, Baby and Kids Lighting said...

Thanks it worked..One more question
To prevent the warning message "This page contains secure and non secure items. Do you want to display non secure items?"? do I change ALL http on my site to https? and what does this mean: in your copy of the script "ActiveContent...js".??
Please get back to us
Thanks
Will
http://www.allkidsoutdoortoys.com

All Kids Lamps, Baby and Kids Lighting said...

Thanks it worked..One more question
To prevent the warning message "This page contains secure and non secure items. Do you want to display non secure items?"? do I change ALL http on my site to https? and what does this mean: in your copy of the script "ActiveContent...js".??
Please get back to us email: sales@allkidslamps.com
Thanks
Will
http://www.allkidsoutdoortoys.com

dmpost said...

Yes, all http including http in the script.
< script src='http://f-source.com/scripts/ActiveContentDropDown2.js' type='text/javascript'>< /script>

This script file "ActiveContentDropDown2.js" can be found in the menu package,
or downloaded from here: http://f-source.com/scripts/ActiveContentDropDown2.js

All Kids Lamps, Baby and Kids Lighting said...

My flash menu works fine now but as soon as you scroll down and click on the white middle part of the website, the flash menu does not work when roll over the main buttons, you have to click one of the main buttons for the menu to pull down.
What can I do to make the roll over work all the time? http://www.allkidsoutdoortoys.com
Thanks
Will

All Kids Lamps, Baby and Kids Lighting said...

The menu does not work on roll over with my mouse in Firefox only (it does work in IE, In Firefox, I go to my site, scroll down and click the middle white part then scroll up again and roll over the buttons, the pulldown menu does not appear, it does appear when I click on the button.
Please reply
\Thanks!!
Will

All Kids Lamps, Baby and Kids Lighting said...

Got it solved...sorry for all these messages
Will

All Kids Lamps, Baby and Kids Lighting said...

Only in firefox: Need your help this time! My menu works, when you click on any of the links (the link does not work yet) BUT if you do click on any of the drop down flash menu links, then if you click the "green go back" arrow. Then when you're back on our site, my own links on the left site like the links under shop by age or shop by category are NOT working, you have to wait a few seconds or click your flash menu that's when all of my own links on the left start activating... Sometimes when I click a flash dropdown menu link and go back the links work but most of the time I can not click on any of our links.
Hope you can get back to me soon, before I start creating more work for my self : )
http://www.allkidsoutdoortoys.com
Thanks so much!!
Will

All Kids Lamps, Baby and Kids Lighting said...

Please help Only in firefox: Need your help this time! My menu works, when you click on any of the links (the link does not work yet) BUT if you do click on any of the drop down flash menu links, then if you click the "green go back" arrow. Then when you're back on our site, my own links on the left site like the links under shop by age or shop by category are NOT working, you have to wait a few seconds or click your flash menu that's when all of my own links on the left start activating... Sometimes when I click a flash dropdown menu link and go back the links work but most of the time I can not click on any of our links.
Hope you can get back to me soon, before I start creating more work for my self : )
http://www.allkidsoutdoortoys.com
Thanks so much!!
Will

dmpost said...

I cannot reproduce the error in Firefox (PC).
1. When I click on any menu button I get this error:

A Problem Has Occurred



Please See Below For Details:

Could not open Database connection!

Error Code : Not Available


2. When I go back, by "back" button, all your links working fine.

Please write your messages on http://f-source.com/support/