HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
open browser window help
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form
View previous topic :: View next topic  
Author Message
studiojoe



Joined: 03 Jan 2005
Posts: 4

PostPosted: Mon Jan 03, 2005 11:57 am     open browser window help Reply with quote

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

PostPosted: Mon Jan 03, 2005 10:18 pm     Reply with quote

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

PostPosted: Thu Jan 06, 2005 8:37 am     got it to work.... Reply with quote

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: 9

PostPosted: Tue Apr 22, 2008 8:38 pm     Hi.. I have a similar problem Reply with quote

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: 264
Location: Nord Italy

PostPosted: Wed Apr 23, 2008 5:24 am     Re: Hi.. I have a similar problem Reply with quote

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: 9

PostPosted: Wed Apr 23, 2008 7:26 pm     hi.. thz a lot Reply with quote

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: 9

PostPosted: Wed Apr 23, 2008 11:31 pm     HAY i NEED hELP Reply with quote

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: 264
Location: Nord Italy

PostPosted: Wed Apr 23, 2008 11:55 pm     Reply with quote

 

my_window.document.close();
my_window.focus();
}
</SCRIPT>


and the hour-glass also will stop.
 
webdesignerts



Joined: 07 Apr 2008
Posts: 9

PostPosted: Thu Apr 24, 2008 7:12 pm     Reply with quote

Thanks guys you're awesome. I really appreciate this.
I hope you can always help me....
Thanks a lots
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial