473,498 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

cursor lost it hand

Hi All

I have a few

onclick="javascript:poptastic('http://dominatesoftware.com/main.php','height=430,width=400,resizable=1,scroll bars=1,toolbar=1');"

calls in several html files. The function looks like this
var newwindow;
function poptastic(url,stuff)
{
newwindow=window.open(url,'name',stuff);
if (window.focus) {newwindow.focus()}
}

My problem is the cursor doesn't change to the hand so my users may not
realize there is a link there. I think it is because the javascript doesn't
produce a HREF tag

Is there some way to get a onmouseover thingy to fix this

Yes I'm new to javascript

Len Bell
Jun 27 '08 #1
4 1491
lenbell wrote on 27 mei 2008 in comp.lang.javascript:
Hi All

I have a few

onclick="javascript:poptastic('http://dominatesoftware.com/main.php','h
eight=430,width=400,resizable=1,scrollbars=1,toolb ar=1');"
the javascript: part is nonsense, trow it avaw.

calls in several html files. The function looks like this
var newwindow;
function poptastic(url,stuff)
{
newwindow=window.open(url,'name',stuff);
if (window.focus) {newwindow.focus()}
}

My problem is the cursor doesn't change to the hand so my users may
not realize there is a link there. I think it is because the
javascript doesn't produce a HREF tag
Should it?
You firat have to produce an html element that understands href=.
href is not a tag, btw.
Is there some way to get a onmouseover thingy to fix this

Yes I'm new to javascript
Better read up on CSS styles, that's where you change the cursor.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 27 '08 #2

"Evertjan." <ex**************@interxnl.netwrote in message
news:Xn********************@194.109.133.242...
lenbell wrote on 27 mei 2008 in comp.lang.javascript:
>Hi All

I have a few

onclick="javascript:poptastic('http://dominatesoftware.com/main.php','h
eight=430,width=400,resizable=1,scrollbars=1,tool bar=1');"

the javascript: part is nonsense, trow it avaw.

>calls in several html files. The function looks like this
var newwindow;
function poptastic(url,stuff)
{
newwindow=window.open(url,'name',stuff);
if (window.focus) {newwindow.focus()}
}

My problem is the cursor doesn't change to the hand so my users may
not realize there is a link there. I think it is because the
javascript doesn't produce a HREF tag

Should it?
You firat have to produce an html element that understands href=.
href is not a tag, btw.
>Is there some way to get a onmouseover thingy to fix this

Yes I'm new to javascript

Better read up on CSS styles, that's where you change the cursor.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Not really a CSS problem at all. I don't want it to change cursors on every
image, just the ones that have this "poptastic" attached to the onClick
event

The problem is that the html has no HREF tag so it does not change the cusor
shape to the hand - indicating a link.

I need and can not find a javascript to attach to the onMouseOver event

Len Bell
Jun 27 '08 #3
lenbell meinte:
"Evertjan." <ex**************@interxnl.netwrote in message
>Better read up on CSS styles, that's where you change the cursor.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Please don't quote signatures.
Not really a CSS problem at all. I don't want it to change cursors on every
image, just the ones that have this "poptastic" attached to the onClick
event

The problem is that the html has no HREF tag so it does not change the cusor
shape to the hand - indicating a link.

I need and can not find a javascript to attach to the onMouseOver event
Huh?

onmouseover="this.style.cursor='pointer'"

Gregor

--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Jun 27 '08 #4
[snipped attribution novel]

lenbell wrote:
"Evertjan." <ex**************@interxnl.netwrote [...]:
>lenbell wrote on 27 mei 2008 in comp.lang.javascript:
>>I have a few

onclick="javascript:poptastic('http://dominatesoftware.com/main.php','h
eight=430,width=400,resizable=1,scrollbars=1,too lbar=1');"
[...]
My problem is the cursor doesn't change to the hand so my users may
not realize there is a link there.
Because there isn't any.
>>I think it is because the javascript doesn't produce a HREF tag
Should it?
You firat have to produce an html element that understands href=.
href is not a tag, btw.
>>Is there some way to get a onmouseover thingy to fix this

Yes I'm new to javascript
Better read up on CSS styles, that's where you change the cursor.
[...]

Not really a CSS problem at all. I don't want it to change cursors on every
image, just the ones that have this "poptastic" attached to the onClick
event
Make them links; don't make the other ones links.
The problem is that the html has no HREF tag so it does not change the cusor
shape to the hand - indicating a link.
Again, `href' is not a tag. It is an attribute of `a' elements, among
others. When used with an `a' element, that makes this element a (hyper)link.

A tag instead is a part of an element: <pis the start tag of the `p'
element, for example.

See also http://www.w3.org/TR/REC-html40/intr...t.html#h-3.2.1
I need [...] a javascript to attach to the onMouseOver event
No, you don't. Instead you need a minimum clue about HTML and client-side
scripting, and how to use both to create Web sites that degrade gracefully,
before you continue.

<script type="text/javascript">
function isMethod(o, p)
{
return o && /\b(function|object|unknown)\b/i.test(typeof o[p])
&& o[p];
}

function poptastic(url, options)
{
if (isMethod(window, "open"))
{
var w = window.open(url, "poptastic", options);
if (isMethod(w, "focus")) w.focus();
}

return !w;
}
</script>

<a href="http://dominatesoftware.com/main.php"
onclick="return poptastic(this.href,
'height=430,width=400,resizable,scrollbars,toolbar ');"
>...</a>

PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
17026
by: jkarp2 | last post by:
Ok. I just switched to VB.net, and well, everything seemed find. .NET took care of buffering, and some nice DirectX features. The code formating is usless, just a pain to get it way I like it. ...
9
8314
by: Chris Michael | last post by:
I am using the following class in a CSS document: ..loginsubmit { background-color: #ffffff; FONT-WEIGHT: bold; color: #002980; cursor: hand } It works perfectly well, but it won't validate...
6
2602
by: Steel | last post by:
Hi at all the last year I looked this CSS : cursor: hand; -moz-border-radius-topleft:18%; -moz-border-radius-topright:18%; -moz-border-radius-bottomleft:18%; -moz-border-radius-bottomright:18%;...
2
1343
by: Brad Shook | last post by:
I am trying to change the cursor in a vb windows program with the following code. Me.Cursor.Current = Cursors.Hand It is not working. Does anyone have any suggestions? Thanks,
4
1978
by: McKirahan | last post by:
This is from a previous post entitled "cursor type": "IE 4.0 through 5.5 didn't support the cursor type 'pointer' (only the non-standard 'hand')." How might the following be modified to...
0
1206
by: Dominic Paquette | last post by:
Hi, I encountered a problem and I don't know if it's a bug or if I'm doing something wrong. I wrote a UserControl in which I wireup 2 event handlers MouseDown and MouseUp. MouseDown changes the...
1
8650
by: ryezack | last post by:
i have an image map with an onmouseover event thats calls a javascript function style cursor is hand. this works in IE but not in firefox. here's the code: <script type="text/javascript"> <!--...
1
32434
Ericks
by: Ericks | last post by:
This must be a piece of cake and I'm sure it has been addressed somewhere in this forum. I have a form with a control that when clicked on opens another form. So I want the cursor to change to a...
1
3282
by: vlmskr | last post by:
I have button with mouseup, mousedown, mouseout, mouseover events. On these events I am using cursor as hand. Now the issue is with submitting the button. After clicking on button cursor should be...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7167
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7208
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5464
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4593
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3095
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1423
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
657
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.