Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need a bit of HTML help


wizardsandwars

Recommended Posts

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.

Link to comment
Share on other sites

<?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>'; ?>

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...