modifier_guy
01-06-2004, 02:33 AM
how do i make a window open in a seclected size? cus i got it so u clcik on a thumbnail then it openes a new window to display more pictues but i wnat the new window to open a certain size
|
Click to See Complete Forum and Search --> : Window open in a pecific size? modifier_guy 01-06-2004, 02:33 AM how do i make a window open in a seclected size? cus i got it so u clcik on a thumbnail then it openes a new window to display more pictues but i wnat the new window to open a certain size Klyve1 01-06-2004, 03:42 AM Try this in the head... <script language="JavaScript" type="text/JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script> And this as the link <a href="samepageasyouareon.html" onclick="MM_openBrWindow('newpage.html','WindowName','toolbar=yes,location=yes,status=yes,menubar=yes,scrollb ars=yes,resizable=yes,width=100,height=100')">Link text or whatever </a> eviljoker7075 01-06-2004, 04:29 AM Can you do it in HTML? pyro 01-06-2004, 07:24 AM Not to a specific size, no. If you use a transitional or frameset DOCTYPE, you can use the target attribute, but that will not allow you to set the size. Here's how I would open a new window with JavaScript, if needed: <a href="http://www.w3.org/" onclick="window.open(this.href, 'winname', 'width=400, height=300, scrollbars=1'); return false;">open</a> modifier_guy 01-06-2004, 01:01 PM pyro willl that script work wil a picture link? pyro 01-06-2004, 01:31 PM Indeed. modifier_guy 01-06-2004, 02:04 PM alright i will try that out i am trying to clean up my website so i will try that a bit later eviljoker7075 01-06-2004, 02:22 PM Thanks Pyro, you got all the answers! pyro 01-06-2004, 02:26 PM Nay, but just a few. Glad I had this one, and it helped you out, though. :) modifier_guy 01-06-2004, 02:55 PM pyro u r so good with help, you ahve helped me alot, u got all the awsners, i just got a html book n it is pretty good, i havent sat down n read it but i ahve browsed thru it is seams good pyro 01-06-2004, 03:18 PM Which HTML book did you get? modifier_guy 01-06-2004, 04:29 PM "HTML A Begginers Guide" By Wendy Willard it is a good book it is helpfull include, html, working with text images multimedia, tables Java script, basics css, how to write it ect. and soem mroe it was 30 bux not bad for a 600 page book modifier_guy 01-07-2004, 01:18 AM how would i set that <a href="http://www.w3.org/" onclick="window.open(this.href, 'winname', 'width=400, height=300, scrollbars=1'); return false;">open</a> with an image? cus i need it to linkw ith an image pyro 01-07-2004, 07:34 AM <a href="yourimage.png" onclick="window.open(this.href, 'winname', 'width=400, height=300, scrollbars=1'); return false;">open</a> eviljoker7075 01-07-2004, 09:40 AM Call me dense if you will, but I can't see any part of that bit of code Pyro just gave to contain a URL for the link... isn't that a problem? pyro 01-07-2004, 10:02 AM <a href="yourimage.png" onclick="window.open(this.href, 'winname', 'width=400, height=300, scrollbars=1'); return false;">open</a> modifier_guy 01-07-2004, 02:26 PM <a href="/pictures/pic1.jpg" onclick="window.open(this.href, 'winname', 'width=400, height=300, scrollbars=1'); return false;">open</a> how do i link the picture to go to a new page? cus on my site when u clcik the image it opens up a page say pictures1.html? pyro 01-07-2004, 02:28 PM huh? :confused: eviljoker7075 01-07-2004, 02:38 PM That goes back to what I said, you've set the link as the images, instead of using an image as a link. modifier_guy 01-07-2004, 02:40 PM ok on my website Link removed by moderator. Please do not post links to sites with such content. when u click on one of the pictures it opens a new window displaying more pictures, now i need a code to make it so when u clcik the picture to open a new window it makes it a certain size modifier_guy 01-08-2004, 04:22 PM os there a script like the one i need? when u click on one of the pictures it opens a new window displaying more pictures, now i need a code to make it so when u clcik the picture to open a new window it makes it a certain size webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |