The Artima Developer Community
Sponsored Link

Java Answers Forum
Help needed

1 reply on 1 page. Most recent reply: Dec 12, 2002 9:23 AM by Kishori Sharan

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
Maik

Posts: 1
Nickname: maik
Registered: Dec, 2002

Help needed Posted: Dec 11, 2002 8:06 AM
Reply to this message Reply
Advertisement
Does anybody know a script which forces first a click on a picture and after you made the click and only then you can open another link?
Please write the answer to gyrospitter@yahoo.de

Thanks


Kishori Sharan

Posts: 211
Nickname: kishori
Registered: Feb, 2002

Re: Help needed Posted: Dec 12, 2002 9:23 AM
Reply to this message Reply
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
 var pictureClicked = false;
  function c1() {
    if ( !pictureClicked ) {
     alert ( "Please click the Picture Link first" ) ;
    }
 
  	return pictureClicked;
  }
</SCRIPT>
 
<TITLE>Hello</TITLE>
 
</HEAD>
 
<BODY>
 
<hr/>
<h1><a href="http://www.artima.com" onClick="pictureClicked=true;alert('you can visit yahoo now');return false">Picture Link...</a><h1>
 
<hr/>
<h1><a href="http://www.yahoo.com" onClick="return c1()">Go to Yahoo</a><h1>
<hr/>
 
</BODY>
</HTML>

Flat View: This topic has 1 reply on 1 page
Topic: Creat/building tray icon for a java application Previous Topic   Next Topic Topic: JDeveloper

Sponsored Links



Google
  Web Artima.com   

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