Code: Select all
javascript:void(window.open('http://www.domain.com','Click for your description'));
Is there a better way?
Thanks,
N
Code: Select all
javascript:void(window.open('http://www.domain.com','Click for your description'));
Code: Select all
function launchGenericPopUp(winName, url, w, h, incScroll) {
var centerWidth = (window.screen.width - w) / 2;
var centerHeight = 0;
var newWindow = window.open(url, winName, 'width='+w+',height='+h+',menubar=no,location=no,resizable=1,status=no,scrollbars='+incScroll+ ',left=' + centerWidth + ',top=' + centerHeight);
if (window.focus) {
newWindow.focus();
}
}
function launchNamePopUp(name, url, w, h) {
launchGenericPopUp(name, url, w, h, 1);
}
function launchNamePopUpNoScroll(name, url, w, h) {
launchGenericPopUp(name, url, w, h, 0);
}
// launchPopUp: Has to be kept as it is used directly
// in the JSPs. Use launchNamePopUp from now on.
function launchPopUp(url, w, h) {
launchNamePopUp('NAP_pop', url, w, h);
}
// launchPopUpNoScrolls: As with launchPopUp above
function launchPopUpNoScrolls(url, w, h) {
launchNamePopUpNoScroll('NAP_pop_noscr', url, w, h);
}
Code: Select all
<a href="javascript:launchPopUp('mywebpage.html',900,600);">Click Here</a>
Whoa... It's not worth that much hacking...pprmkr wrote:When you add a script to load the link in a new window, all the banners open in a new wndow. Even the banners to your own information pages.
I posted a possible solution for this 'problem'. See this topic ...
The changes made to slideshow can als0 be made to banner ( controller and template )
Users browsing this forum: No registered users and 283 guests