|
|
#1 (permalink) Top | ||
|
GEEK 2.0
![]() Join Date: Jul 2006
Gender: Male
Posts: 417
Times Helpful: 1
My Mood: Relaxed
Status: Offline
|
im trying to have javascript in my header, so i dont have to re-type the attributes on every page i want a pop-up, so far this is what i have, but its not working..
code to put in header.. Quote:
Quote:
__________________
Last edited by blade; 05-08-2007 at 05:07 AM. |
||
|
|
|
|
#2 (permalink) Top |
|
iMod
![]() ![]() Join Date: May 2005
Age: 21 Male
Posts: 3,844
Times Helpful: 238
My Mood: Happy
Status: Offline
|
There's a tutorial on TechTuts that deals with Javascript pop-ups:
Javascript PopUp Window Should help a bit.
__________________
|
|
|
|
|
#3 (permalink) Top | |
|
GEEK 2.0
![]() Join Date: Jul 2006
Gender: Male
Posts: 417
Times Helpful: 1
My Mood: Relaxed
Status: Offline
|
Quote:
Code:
<script type="text/javascript">
/*<![CDATA[*/
function win(width,height,url) {
var myfloater=window.open(url,'','scrollbars=yes,toolbar=no,resizable=yes,status=no,width='+width+',height='+height+',top='+((screen.availHeight/2)-(height/2))+',left='+((screen.availWidth/2)-(width/2))+',directories=no');
}
/*]]>*/
</script>
<a href="http://www.domain.com/content.html" onclick="win(600,400,this.href); return false;">launch</a>
__________________
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Little Javascript Stopwatch I Made | Matt555 | Web Development | 11 | 12-06-2007 07:49 AM |
| Firefox javascript flaw was made up | Addis | News and Article Comments | 7 | 09-10-2006 08:05 PM |
| Javascript/FOR loop | gumdigger | Web Development | 1 | 19-03-2006 11:18 AM |
| IE opening as very small window | phaedrus | General Software | 3 | 20-11-2005 08:46 AM |
| Fresh Javascript Browser Exploit | syngod | News and Article Comments | 0 | 26-06-2005 10:08 PM |