ngdoherty
Junior Member
Posts: 2
Registered: 11/15/2006
Member Is Offline
|
| posted on 11/15/2006 at 05:17 AM |
|
|
Add pop-up link in scroller
Hi,
Lining to external files works fine in the scroller - but I would prefer to link to a pop-up. I am aware of blocking issues ;-)
Is this possible?
I tried using the code below in scroller.html - but first link doesn't work when embedded in the scroller. Second link is fine.
Any help greatly appreciated.
Neil
<script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<p>
<a href="javascript:;"
onClick="MM_openBrWindow('http://www.mysite.com/news1.htm','','scrollbars=yes,resizable=yes,width=340,height=300')">Link1 </a>
</p>
<br>
<p>
<a href="http://www.mysite.com/news3.htm" target="_blank">Link 2</a>
</p>
</body>
</html>
|
|
|
tigra
Administrator
Posts: 1920
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 11/15/2006 at 10:09 AM |
|
|
your MM_openBrWindow function may not be available to the code in the scroller. Try calling window.open directly from onclick event.
|
|
|
ngdoherty
Junior Member
Posts: 2
Registered: 11/15/2006
Member Is Offline
|
| posted on 11/22/2006 at 05:41 AM |
|
|
Thanks - that worked!
Here is the code that I used ..
<p>
<a href="http://www.mydomain.com/mypage.htm" onclick="popWin = open('http://www.mydomain.com/mypage.htm','MyPage','width=340,
height=300');popWin.focus();return false"> Click Here</a>
</p>
Could also have used ...
<a href="javascript:void window.open('http://www.mydomain.com/mypage.htm','MyPage','width=340, height=300')"> Click Here </a>
|
|
|