The Artima Developer Community
Sponsored Link

Java Answers Forum
openwindow()

1 reply on 1 page. Most recent reply: Dec 29, 2004 3:11 AM by mausam

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Syidah

Posts: 1
Nickname: cyberina
Registered: Dec, 2004

openwindow() Posted: Dec 27, 2004 11:37 PM
Reply to this message Reply
Advertisement
i need help regarding openwindow().. what's the coding in java or DHTML when u click on the image and another window pops up containing that image.. i have a few images.. once i click on the image, another window is open... when i click another image.. the window that have opened, refresh and load another image.. can someone help me??


mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: openwindow() Posted: Dec 29, 2004 3:11 AM
Reply to this message Reply
In the head tag write the code

<script>

function load_picture_v(picture)
{
nw=window.open(picture,"","status=0,menubar=0,width=270,height=380,scrollbar=no ");
}
</script>

in the body add ur picture and in href do like the following

<a href="javascript:load_picture_v('sc1.jpg')"><img width=140 height=100 src="sc1.jpg" border="1" alt="Periyar"></a>

Flat View: This topic has 1 reply on 1 page
Topic: JSP & Crystal Report Previous Topic   Next Topic Topic: Multiple Static Initialisers

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use