wizardsandwars Posted November 19, 2002 Posted November 19, 2002 I understand that using a target in an <a> will open whatever you are linking to in a new window, but how do I size that window to the picture of the image? For Example: <a target="new_window" href="www.wizardsandwars.com/image"> ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.
Guest Posted November 19, 2002 Posted November 19, 2002 The only way I know to make the window open to a certain size is with Java script ? maybe some one else knows a different way. In the meantime, you can look here to see if there is anything that fits to your needs ? http://www.javafile.com/popupwin.php?cat=Popup+Windows
Ajeh Posted November 19, 2002 Posted November 19, 2002 <?php echo '<a href="" onClick="' . "window.open('http://www.thewebmakerscorner.com/snapmods_new/test.html','newWin','titlebar=yes,scrollbars=yes,width=650,height=500'" . ');return false;">' . 'Click here'. '</a><br>'; ?>
wizardsandwars Posted November 19, 2002 Author Posted November 19, 2002 Linda, Thanks for the code. Unfortunatly, I can't put it into the 'description' field of the product. I'm not sure, but it doesn't look like it recognizes the '<? php' tag. Is it possible to do this with just html? ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.
Ajeh Posted November 19, 2002 Posted November 19, 2002 Cheating and looking at source code helps: <a href="" onClick="window.open('http://www.thewebmakerscorner.com/snapmods_new/test.html','newWin','titlebar=yes,scrollbars=yes,width=650,height=500');return false;">Click here too</a>
wizardsandwars Posted November 19, 2002 Author Posted November 19, 2002 Fantastic, Thanks, Linda. ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.
Ajeh Posted November 19, 2002 Posted November 19, 2002 Sure thing ... I always wanted to be able to do it either way too ... so it was a fun 5 minute lesson for me too :roll:
wizardsandwars Posted November 19, 2002 Author Posted November 19, 2002 Yeah, I've got to eventually learn all of my tag flags. Hard to believe I'm a level III Database programmer that doesn't know HTML. :lol: Thanks again. ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.
Ajeh Posted November 19, 2002 Posted November 19, 2002 I code like a wiz offline and still trip over a lot of stuff I know I should know better. One moment of brillance than dashed to all heck by shear stupidity ... but then that is the nature of the beast. Ain't coding a blast? 8)
wizardsandwars Posted November 19, 2002 Author Posted November 19, 2002 I'm actually pretty good with perl and other shell scripting languages, as well as with SQL. I even teach some SQL optimization classes. Web stuff is pretty new to me though. I learned some cgi lat year, and this year I've been working on learning php. I love programming. I spend about 12 hours a day hacking away. ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.