473,376 Members | 985 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,376 software developers and data experts.

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 1487
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
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
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
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
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
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
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
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
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
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.