1 defy Mar 25, 2005 14:10
3 defy Mar 25, 2005 17:29
Thanks! It works great :]
<edit>
After playing around a little I found it works fine in Firefox but not in IE6. IE just opens a maximized window within the same page. I know it's weird. Plus I was wondering is there a shorter way to do this? I mean it's a pain in the ass typing all that everytime I want a link to popup.
</edit>
4 yabba Mar 26, 2005 10:30
You could write a javascript function to open the window, which would reduce the amount of typing for each link :-
<script type="text/javascript">
function openIt(ypAnchor){
window.open(ypAnchor.href,'','required features');
return false;
}
</script>
Your anchor then becomes :-
<a href="http://ww.innervisions.org.uk" onclick="return openIt(this)">Click me</a>
?
5 john Mar 26, 2005 11:06
The non javascript popup works fine in IE 6 SP2 XP!! You can always just save the script as a template and simply change the variables.
open conf/_formatting.php, find a line that looks like :-
'a' => A_attrs.' charset type href hreflang rel rev shape coords target', // Transitional
and change it to :-
'a' => A_attrs.' charset type href hreflang rel rev shape coords target onclick', // Transitional
Then use :-
<a href="http://www.innervisions.org.uk" onclick="window.open(this.href,'','menu=no etc');return false">Click me</a>
?