HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 8th, 2000, 03:26 AM
iwarner iwarner is offline
BrainFreeze
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: London
Posts: 318 iwarner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 41 m 9 sec
Reputation Power: 9
Send a message via ICQ to iwarner Send a message via Yahoo to iwarner
I have the following Javascript thats brings up a pop up window on the click of an image, the trouble is as the images are not href'd the mouse stays as a pointer and doesnt change to a hand anybody no the solution please.

<SCRIPT LANGUAGE="JavaScript">
<!--
function PopIt(filename, h, w){
popup = window.open(filename,"popDialog","height="+h+",width="+w+",scrollbars=no")
if ( popup.document.close() ) {
popup.document.close()}}
window.onerror=new Function("return true")
var n = Math.random()*4;
if(n>=0 && n<1){ document.write("<img src='images/1.gif' border=0 onClick="PopIt('report.php3?id=1&vendor_id=1', 410, 300)">"); }
if(n>=1 && n<2){ document.write("<img src='images/2.gif' border=0 onClick="PopIt('report.php3?id=2&vendor_id=1', 410, 300)">"); }
if(n>=2 && n<3){ document.write("<img src='images/3.gif' border=0 onClick="PopIt('report.php3?id=3&vendor_id=1', 410, 300)">"); }
if(n>=3 && n<4){ document.write("<img src='images/4.gif' border=0 onClick="PopIt('report.php3?id=4&vendor_id=1', 410, 300)">"); }
// -->
</SCRIPT>

Reply With Quote
  #2  
Old June 8th, 2000, 07:46 PM
Argrajoca Argrajoca is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: SPAIN
Posts: 47 Argrajoca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Yo only have to href the image to # (That is <a href="#"...> and add return false at the end of the PopIt function (or inside onClick).

That is:
<a href="#" onClick="PopIt('report.php3?id=2&vendor_id=1', 410, 300)"><img src='images/2.gif' border=0></a>

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Mouse Pointer Problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway