|
|
 |
February 13th, 2004, 07:31 PM
|
#1
|
|
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Open Browser Window
Is there anyway of doing this? I currently have my open browser windows set up, but they are javascript.. I found something on the internet earlier but when I clicked on it the script was blank!
|
|
|
February 13th, 2004, 08:06 PM
|
#2
|
|
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
you mean you want to create a new Browser window without using JavaScript?
|
|
|
February 13th, 2004, 09:37 PM
|
#3
|
|
WebForumz Member
Join Date: Oct 2003
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
If kulegamr is right, and you just want to open a new browser window, here's why not to do it.
If you right click on any link (assuming you're using Windows) you will have the option to "Open in New Window". So basically, I have the option to open a link in the same window, or in a whole new window. When you force me to open a link in a new window, you have narrowed my options down to one. This is something people often overlook- it may be minor, but it is important.
If you must open a link in a new window, then this will do the trick:
somewhere
However, the "target" attribute is no longer correct, and has been deprecated as of XHTML 1.0, as you are enforcing something upon a user.
|
|
|
February 13th, 2004, 09:59 PM
|
#4
|
|
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Yeah, But I just always hold in shift and click to open a new window...
|
|
|
February 14th, 2004, 05:34 AM
|
#5
|
Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 117
|
Which is the same as right-clicking and opening in a new window...
|
|
|
February 14th, 2004, 06:59 AM
|
#6
|
|
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Hey Guys, thats for the reply... I need if for my sample wedding website page... When I first set up my site, when they clicked on a thumbnail of a sample wedding website it opened a whole brand new page with the sample ' index ' page on only.
However, I have quite a few of these sample sites so, I saved the index pages as small gifs/ jpgs and set it so that when the user clicks on the thumbnail it opens a much smaller browser window so they get the sample website in the corner...
Jamslam - I'm not quite sure what you mean by this:
<blockquote id="quote"><font size="1" face="geneva, verdana, arial" id="quote">quote:<hr height="1" noshade id="quote"> However, the "target" attribute is no longer correct, and has been deprecated as of XHTML 1.0, as you are enforcing something upon a user.<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">
Thanks
Sarah
|
|
|
February 14th, 2004, 07:13 AM
|
#7
|
|
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
This is the code that I have at the moment:
<td height="141" align="center"><a href="javascript :;" onClick="MM_openBrWindow('samplesites/confettisamplesite.htm','Confetti','width=500,heig ht=400')">
[img]/samplesites/confetti_small.jpg[/img]
</a>
<font color="#B2A59F" size="3" face="Arial, Helvetica, sans-serif">
[img]text/sampleweddingwebsites/confetti.gif[/img]</font></td>
So, I need to keep the open browser window at the same size at the gif image.
|
|
|
February 14th, 2004, 07:52 AM
|
#8
|
Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 117
|
Then simply change the width and height properties here:
onClick="MM_openBrWindow('samplesites/confettisamplesite.htm','Confetti','width=500,heig ht=400')"
Jamslam was saying that using
Should no longer be used because you are forcing the user to open the link in a new window.
|
|
|
February 14th, 2004, 08:43 AM
|
#9
|
|
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Hi Sirkent, thank you!
However, I am a little confused... if I shouldn't use it, what should I do? I need the extra window to open to show the client the sample sites they can use.
I am also in the middle of designing a site for a new lady who wants the same thing... she sells wedding dresses and she wants the user to be able to click on a thumbnail of a dress and it then to maximise in a window with the larger picture of the dress and the text details as well.
|
|
|
February 14th, 2004, 08:45 AM
|
#10
|
|
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
and the new window must open on the same page that the user is already on.... but in the corner..
I think I am confusing myself here.... <banghead>
|
|
|
February 14th, 2004, 01:58 PM
|
#11
|
|
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
You could always use frames to do this... You could put a frame in one of the corners to display the site's logo. When you click a thumbnail it would change to the enlarged version of that picture. Just a suggestion...
|
|
|
February 14th, 2004, 02:37 PM
|
#12
|
|
Reputable Member
Join Date: Jan 2004
Location: United Kingdom
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Thanks Kule, but I don't want to use frames 
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|