Hello. I am using dreamweaver MX and have a Javascript code I use frequently for specifying the siza of popup windows(building a glossary to be used sitewide). How can I make this script available inside dreamweaver like other components. For example:
Under insert menu>>insert popup.
The code is composed of a function put in the head section of the page and another snippet that calls this function to popup the window.
The function:
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar ? 'yes' : 'no';
menubar_str = menubar ? 'yes' : 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height= '+height+',toolbar='+toolbar_str+',menubar='+menub ar_str+',status='+statusbar_str+',scrollbars='+scr ollbar_str+',resizable='+resizable_str);
}
and the calling method is:
anchortext
Thanks
By the way I do not know why this post is so wide.sorry