HTML - Background Image To Open New Window
Hi,
I have been searching around but am unable to find what I'm after... I am currently using the following code to open a new window (the new window needs to be 800x600). It currently does what I want it too. But instead of clicking on the word 'enter' to open the new window, is it possible to make an image do this instead? So when the user reaches the site and clicks the image a new window will open up (but at 800x600, not just a new window). If so I would be grateful if somebody could direct me to the correct coding to use. CSS: #enter { /* border:red solid 1px; */ margin-top:-300px; margin-left:auto; margin-right:50px; height:600px; width:800px; HTML: <a href="index2.html" target=open1 onClick="myRef = window.open('','open1', 'left=50,top=0,width=800,height=600,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars =0,resizable=0,copyhistory=0');"> enter </a> Thanks Tom Similar TutorialsHi guys. I was hoping somebody can help me with this problem. I have an image that I would click on and it would open in another window, in a larger size. The only way I can presently do this is by using the target="_blank" code but this opens a window with scrollbars and the address bar. I would like just the image. Also with this method I have to use 2 images, a small pic, and a larger version. Is there any way to use just one size image, and have it open in a new window in a bigger size? Please look at this page to see what I would like to do, i.e. clicking on an image and have a pop-up window open up with a larger version of that image. http://www.currys.co.uk/martprd/product/seo/733683 I would appreciate any help with this. Thank you. Hi, Want to open a window without addressbar and menubar with loading image for the button click. i want to c the loading gif right after opening the window. its very urgent anybody help me on this Thanks, Hi, I have a background image in my website and I want it to look the same in all window resolutions. However, when I resize the browser's window and I make it smaller althuogh I can see all the contents in the page I only can see a part of my background image. My CSS is like this: Code: body.secondary { background-image:url('images/flowers.JPG'); background-repeat:no-repeat; background-position:right top; background-attachment: fixed; } And if you need it this is the page. Many thanks! Cheers! Hi all, I am wondering if anyone know how to have a link, once clicked, open a popup window WHILE also changing the page in the existing window. I know how to code them separately, but I do not know how to combine the two actions. HTML Code: <A HREF="javascript:popUp('popup.html')">link name</A> My site currently uses the above code to open popup windows. Any help would be much appreciated, David Here is the case. I have an HTML page that opens a pop-up. Within the popup I need upon click to open a new window. The code is as it should be according to all references: <a href="some url" target="_blank">text</a> Everything is ok with IE6 and IE7 - a new window is being opened. What happens in Firefox is very strange - tabs are shown and the currently opened popup becomes one of the tabs and the new window opens in a new tab of the pop-up window instead in a new normal window. Did anybody encounter the same problem? Any solutions? I have a site that opens a new window to this link: http://www.myvira.com/part_reg/part_...this_event=154 If you click the "Pay Fee" button link, I want it to open the payment window in a new one but it either keeps it in the current window or back to the main window that this all started from (http://www.myvira.com and then click on the "Register for Race" item). Any help would be much appreciated!!! Hi, can any one show me how to change this HTML to make the link open in a new window? I am new to HTML and cant see which part selects how it opens. HTML Code: <!--- begin Howdens.com dropdown ---><form action=" " method=" GET " id=form3 name=form3><table border=" 0" cellpadding=" 1 " cellspacing=" 0 " width=244><tr><td bgcolor="#ffffff" align=" center " ><a href=" http://www.Howdens.com "> <img src=" http://www.howdens.com/i/link2us/small-howdens-stack.jpg " width=244 height=76 border=0 alt="link to Howdens.com"></a><br clear=all><SELECT NAME="URL " SIZE=1 onChange="window.open(this.options[this.selectedIndex].value,'_top')"><OPTION selected="choose one " >choose one<br><option value="http://www.Howdens.com ">Howdens.com</option><option value="http://www.howdens.com/kitchens/">Kitchens </option><option value="http://www.howdens.com/appliances/">Appliances</option><option value="http://www.howdens.com/joinery/">Joinery</option><option value="http://www.howdens.com/bathroom-cabinets/">Bathroom Cabinets</option></select></td></tr></table></form><!--- end Howdens.com dropdown ---> Thanks for any help. Hello everyone, I've been stuck on this for a good few hours trying to figure it out. At which i have to come to a conclusion that it's a User Browser preference. I was using the target="_blank", and it just keeps opening in a new tab. Anyone have a simple quick solution to make sure it opens in a new window? Hi All, Is there any posibility to open a window with some default html code. Example : In a page dropdown changes i will launch a new window using window.open() as soon as the window opens i want to display default content to the user until the the browser get the response from the server. Thanks in Advance. Hi, I have a hyperlink in one of my application as: a href="/servername/application/Folderjsp/link_to.jsp?person=USERNAME"target="new_sc_window" >Test Link</a> When a Superuser click on one of the Subusers it opens a New window with the Current Username parameter passed.(Via the jsp page). But the problem is when the SUperuser is coming back to his own window, he is being logged out. I know i will not have this problem (in my application ) if clickin on that link opens a NEW Internet Explorer browser window; and then pass the parameters. Is there any workaround. Please suggest. Thanks, JJ Hi Guys! Me again with a noob question... On this page : http://kunstler.ca/Coordonnees.html I have a GoogleMap image that is a link... But how do I make it open in a new tab or new window? I've tried some stuff on tutorial sites but can't get it to work. Thanks for the help... Maybe some day I'll be the one helping others! Dominick http://kunstler.ca Hello, How do I make a window.open method to open an html file and make it NOT resizable. Below is the code I have: onclick="window.open('img_1440.html', '','width=600px,height=550px resizable=0');" This window is going to be a small popup window and we want to make it not resizable. Thanks, Ruchir Hi Guys, I have recently changed over to DOC TYPE "HTML 4 strict" My page is validating fine apart from where i have used target="_blank" on one of my links. Is there a way around this or do i haev to go back to transitional? The page is here www.creativecogs.com/final Link to the validation error http://validator.w3.org/check?uri=ht...doctype=Inline CC_DESIGN I am embarrassed to be asking this, but... How do I open a new window from the parent window using an anchor with predetermined width, height and menu/scrollbar/status bar visibility options? I want the window to open with NO scrollbars, NO status bar, NO menus and set to 800px wide by 420px high. I have been writing html, css, php and sql for 6 years now and have NEVER needed to open a new window without using target="". When I realized this I shocked my self because I didn't know it...lol EDIT: I forgot to add, I need it to work in IE7 and Moz FF 2.0, thanks Thanks in advance Jason I have the following html which opens a new window. Is there a way of once the new window has opened, the current window closes? thanks HTML Code: <html> <head> <a href="http://www.capitasymonds.co.uk/expertise/all_expertise/industrial_design__project_se.aspx" target="_blank"> <img src="CS_LOGO.jpg" alt="capita logo" width="304" height="30" border="0"/> </a> <head> <hr> <title> Multi-Pix Created By CAPITA SYMONDS </title> <body <br><p><em><b><font size= +1 >Multi-Pix Secure Area Demo:</font></b></em></p> <p><em><a href="#" onClick="javascript:window.open('Multipix.html','_blank','status=yes,top=0,left=0,width=1024,height=768');" >click here</a> to view the Multi-Pix.</em></p> <hr> Generated by <a href="http://www.capitasymonds.co.uk/expertise/all_expertise/process_engineering/smart_tools.aspx" target="_blank"> <br><img src="ST_LOGO.jpg" alt="capita logo" width="200" height="30" border="0"/> </a> </body> </html> i got a problem i cant figure out. in dreamweaver when i add the behavior "open new browser window" to a link that is not external....but like a small pop up page.....when the user clicks on the link, the window opens, but the main window resets....meaning if the link was at the bottom of the page and the user scrolled down to get there....they then have to rescroll on the page to get back to the bottom. how can i get the new window to open without changing the view of the main page. many thanks! Hello! i'm using this commands : <a href="#" onclick="window.open('http://www.google.com','mywindow','menubar=0');return false;">Haga Click Aqui para ver Presentacion</a> and i want to know if it is possible to give the size of the new window and if this command is ok for all kind of browsers or if it has an specific requiererment for users. Thank you very much for your help!!! hi there, I wonder how to open a new window from a link, set the size and remove the toolbar? In my application the user can click on a car model, and I would like to open a new window (smaller) with only the relevant info. the window should be a new one (so he can simply close it and stay in the main page). thanks for any pointers. I need to attach a link to another page, but this opens up in the current page, how do i open up another new window....? <a href="V:\INFORMATION\\Access to Reporting Services_demo.htm">Show me how!</a> how do i create a hyperlink that opens a new window |