Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript images as buttons 2

Status
Not open for further replies.

ch3rri

Technical User
Joined
Feb 5, 2004
Messages
3
Location
US
I have a site that has thumbnails as Javascipt buttons, when clicked on they show a full view of the image in the middle of the page. Now I need to be able to click on that image in the middle of the page to see a pop-up window with a larger view of the image with details and such. Can somebody help me?

Cherri
 
Sounds to me like you would be better off using some sort of server side language. Is that an option? Javascript would not be my first choice when it comes to passing multiple vars from page to page.

Just a suggestion.

Trope
 
if it wasn't for the "... with details and such" javascript would be best choice.

<img onclick=&quot;show(this.src)&quot; src=&quot;&quot;>

<script>
function show(oImg){
large=window.open(oImg,&quot;&quot;,&quot;width=400,height=400,scrollbars,resizable,&quot;);
}
</script>

----------
I'm willing to trade custom scripts for... [see profile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top