the css menu is not a problem
Showing posts with label menu javascript. Show all posts
Showing posts with label menu javascript. Show all posts

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




Jun 28, 2008

menu button onclick

Thank you so much!

You can find the page at: http://herocarerewards.org/Herocare/HerocareNew.cfm

I'm trying to get the submenu links off of "Housing & FInancial" on the
Vista Navigation Bar to link to the appropriate tabbed panels on the bottom
right of the page. Each main menu item on the main navigation bar will have
its own page, and each submenu item will be placed in the tabs on the right
side of each page. The code for the external trigger to open each tab is:
onclick="P7_TPtrig('p7tpc1_1')"

The number 1 refers to the number of the submenu item. The 2nd submenu item
would have the following code: onclick="P7_TPtrig('p7tpc2_2')" etc.

When I add this code to a Dreamweaver spry men bar it works, but I can't get
it to work on the Vista Nav Bar.

Any help you can give me would be great.

Thanks,
Alyson
Herocare, Inc.
(877) HERO-411  Ext. 3


Answer:


Hi Alyson,
there is a function inside of the DIV id="f-source-menu":

function JSF(url){alert("javascript: "+url);}

Here is instrunctions how to use it:
http://f-source.com/flash-menus/Vista_navigation_bar/#javascript

Example:

<div><a href='p7tpc1_1' target='callJSF'>Button1</a></div>
<div><a href='p7tpc2_2' target='callJSF'>Button2</a></div>


function JSF(url){
  if(url=="p7tpc1_1") { P7_TPtrig('p7tpc1_1') }
  if(url=="p7tpc2_2") { P7_TPtrig('p7tpc2_2') }
}


Regards
Dmitry
f-source.com