the css menu is not a problem

Nov 10, 2009

Macromedia Style Menu - Javascript Popups

Is it possible to use javascript behaviors to open up specific sized popups with the f-source Macromedia Style menu?

Answer:

Of course,
the menu can execute any javascript function.

Recomended way to do this:
- menu button code <div><a href='javascript:myFunction1()'>Test JavaScript</a></div>
(write in the Link field of the UI - javascript:myFunction1()

- Add the script to your page

<script type="text/javascript">
function myFunction1(){
top.consoleRef=window.open('download','Download_window','width=350,height=250,left='+(screen.width-350)/2+',top='+(screen.height-350)/2+',menubar=0,toolbar=0,status=1,scrollbars=1,resizable=1');
top.consoleRef.document.writeln('<html><head><title>test
window</title></head><body bgcolor="#ffffff"
onLoad="self.focus()">test</body></html>');
top.consoleRef.document.close()
}
</script>

Regards
Dmitry
f-source.com