 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
studiojoe
Joined: 03 Jan 2005 Posts: 4
|
Posted: Mon Jan 03, 2005 11:57 am open browser window help |
|
|
|
Hi, I hope I'm in the correct forum ...anyways, I'm going crazy trying to get a browser window to open in a seperate _blank window with a fized size. the thing is that I'm using rollover buttons and cant get it to work with them.
here is a link to the file I'm working on. How do I get each button to open in a new window with a fixed size? should I use Imageready, GoLive? or dreamweaver?
Please help before I go completely crazy!
Thanks,
Joe
here's the link ---> http://www.studiojoe.net/test/jarhead3.html |
|
Adeil

Joined: 07 Dec 2004 Posts: 52 Location: USA
|
Posted: Mon Jan 03, 2005 10:18 pm |
|
|
|
the thing that web site uses is this
| Code: |
<a href="#"
onmouseover="changeImages('jarhead3_03', 'images/jarhead3_03-over.gif'); return true;"
onmouseout="changeImages('jarhead3_03', 'images/jarhead3_03.gif'); return true;"
onmousedown="changeImages('jarhead3_03', 'images/jarhead3_03-over.gif'); return true;"
onmouseup="changeImages('jarhead3_03', 'images/jarhead3_03-over.gif'); return true;"><img name="jarhead3_03" src="images/jarhead3_03.gif" width="300" height="197" border="0" alt=""href="http://www.studiojoe.net/sj15.html" onclick="window.open('http://www.studiojoe.net/sj15.html','FUNKY','width=700,height=370,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"></a> |
just use your images, and put your link/width/height in the places in this section and it will work.
| Code: |
| onclick="window.open('http://www.studiojoe.net/sj15.html','FUNKY','width=700,height=370,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false" |
|
|
studiojoe
Joined: 03 Jan 2005 Posts: 4
|
Posted: Thu Jan 06, 2005 8:37 am got it to work.... |
|
|
|
In every Browser excapt Microsoft IE ... take a look at it here
http://www.studiojoe.net
It works in Safari, Netscape and even aol But in IE onle the button on the right side works...!!!! Why is this?
[/url] |
|
webdesignerts
Joined: 07 Apr 2008 Posts: 5
|
Posted: Tue Apr 22, 2008 8:38 pm Hi.. I have a similar problem |
|
|
|
Pls help me
I want to make fixed size in open browser window behaviors of dreamweaver. but i can't. Here is my code
<head>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body>
<a href="javascript:;" onClick="MM_openBrWindow('images/big-companyprofile.jpg','Screen_Detail','width=880,height=514')">Click to Enlarge View</a>
</body>
and then i want to use .jpg file url in javascript.
you got it?
Thank you for your time ..
I am waiting |
|
Straystudio
Joined: 14 Apr 2008 Posts: 92 Location: Nord Italy
|
Posted: Wed Apr 23, 2008 5:24 am Re: Hi.. I have a similar problem |
|
|
|
| webdesignerts wrote: |
| but i can't. |
What won't work?
Code is correct.
Be sure to have Java and JavaScript NOT disabled in Browser
Tools => Options ... => Content (with Netscape Navigator 9)
Edit => Preferences (in other Browser).
Around there You should also find Block pop-up windows to get actived/disactived;
with a customizable Exceptions list, next.
Now an improvment in Your code.
Pop-up comes on, ok;
and once the main window re-gets focus (You click somewhere but on the pop-up),
the pop-up loses its focus and goes sitting at icon in the bar.
It will not come up back, if You click the Link even though;
You will have to re-call it from the system's bar.
Here I add a string re-getting the hidden pop-up in-focus, when You re-click the Link:
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
window.open(theURL,winName,features).focus();
}
//-->
</script>
Pop-up window has to keep named as well; if no name, a new pop-up will be opened (created), everytime You click the Link.
My refocusing string as well, will not know which window go to call up back, if unnamed; as a result, opening TWO new ones !
<body>
<a href="javascript:;" onClick="MM_openBrWindow('images/big-companyprofile.jpg','Screen_Detail','width=880,height=514')">Click to Enlarge View</a>
</body>
Further developments following; let me know how things go ...
|
|
webdesignerts
Joined: 07 Apr 2008 Posts: 5
|
Posted: Wed Apr 23, 2008 7:26 pm hi.. thz a lot |
|
|
|
thank you for your kindness and time..
now I am finish to see fixed size of image on open browse window. i am changed javascript similar your code. thanks a lot....
May I show my code.
<SCRIPT language="JavaScript1.2">
function exitpop(url,imgwidth,imgheight)
{
var path="status=1,width=" + imgwidth + ",height=" + imgheight;
my_window= window.open ("", "mywindow1",path);
my_window.document.marginLeft=0;
my_window.document.marginRight=0;
my_window.document.marginBottom=0;
my_window.document.marginTop=0;
my_window.document.write('<body leftmargin="0" topmargin="0" ><img type="image" src="' + url +'" alt="submit!"/> </body>');
}
</SCRIPT>
<a href="javascript:;" onClick="exitpop('Images\\big-company.jpg','1024','768')">Click to Enlarge View</a>
I have point to show this code. Because someone can solve when they got this error. So.. I show this code.
Thanks a lot.
WBDESIGNER |
|
webdesignerts
Joined: 07 Apr 2008 Posts: 5
|
Posted: Wed Apr 23, 2008 11:31 pm HAY i NEED hELP |
|
|
|
hay
Guys
I need your help... Pls quickly help me..
Did u look i sent code? It dosen't work in mozilla firefox. Do u have any idea????? Pls help me..
thanks regards,
WBDESIGNER |
|
Straystudio
Joined: 14 Apr 2008 Posts: 92 Location: Nord Italy
|
Posted: Wed Apr 23, 2008 11:55 pm |
|
|
|
my_window.document.close();
my_window.focus();
}
</SCRIPT>
and the hour-glass also will stop.
|
|
webdesignerts
Joined: 07 Apr 2008 Posts: 5
|
Posted: Thu Apr 24, 2008 7:12 pm |
|
|
|
Thanks guys you're awesome. I really appreciate this.
I hope you can always help me....
Thanks a lots |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|