Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Popup window: Feedback on simple script:
- From: micky at ambiguism.com (Michael Hulse)
- Subject: [Javascript] Popup window: Feedback on simple script:
- Date: Wed Dec 14 14:47:39 2005
Hey all,
This is my first post to list, so be gentle. :D
I would love to hear your thoughts on the below code:
function popitup(url,ph,pw) {
var newwindow = window.open(url,'photopopup','height=' + ph +
',width=' + pw +
',directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=
no,resizable=no,screenx=150,screeny=150');
if(window.focus) { newwindow.focus() }
return false;
}
<a
href="/path/to/popup.php?z=/path/to/image_two.jpg&width=500&
height=375&title=Pic%202"
onclick="popitup('/path/to/popup.php?z=/path/to/image_two.jpg&
width=500&height=375&title=Pic%202','375','500'); return false"
onMouseOver="document.window.status='photo popup: Pic 2'; return true"
onMouseOut="document.window.status=''; return true">
<img src="/path/to/thumb/image_two.jpg" width="150" height="113"
alt="Pic 2">
</a>
Anything I can do to make it better?
Your feedback would be greatly appreciated. :D
Thanks
Cheers,
Micky
--
?.???`?.??><(((?>`?.??.???`?.??><((((?>
???`?.??.???`?.??.???`?.??.???`?.??><((((?>
`?.??><((((?>?.???`?.??><((((?>
- Prev by Date: [Javascript] DOM Scripting Speed Issue
- Next by Date: [Javascript] Message from Rajeev Ranjan Lall
- Previous by thread: [Javascript] DOM Scripting Speed Issue
- Next by thread: [Javascript] Message from Rajeev Ranjan Lall
- Index(es):