..::: Getting the HAND icon when hovering over a link ::::..

admin

Administrator
Staff member
Good morning,<br />
<br />
Great forum. Where would I post a question about generating the hand icon when the mouse is moved over a link. The page that I cannot get to work is the following...<br />
<br />
<!-- m --><a class="postlink" href="http://www.geocities.com/arcaneerudite/DepartmentalTour.htm">http://www.geocities.com/arcaneerudite/ ... alTour.htm</a><!-- m --><br />
<br />
The greyed box on the bottom left of the screen is not currently behaving like a link (though I haven't actually linked it yet - i was planning on linking it to bookmarks further down the page - which also have yet to be included).<br />
<br />
The second question is ... I get errors on the following page...<br />
<br />
<!-- m --><a class="postlink" href="http://www.geocities.com/arcaneerudite/DepartmentalTourPictureViewer.htm">http://www.geocities.com/arcaneerudite/ ... Viewer.htm</a><!-- m --><br />
<br />
On my own computer the forward and backward buttons and go button all work fine without errors. But on some computers I get errors for line 116 or 117 telling me that prev and go are not defined.<br />
<br />
I would appreciate any help you could give me - and feel free to trawl through the code used. I have only been working in html and javascript for about a week and am trying to teach myself how it works, so please forgive me for the poor layout and bad style:D<br />
<br />
Thanks a lot.<br />
<br />
..:::: ?::::..<!--content-->Well the first thing I see is that there is no function called back()... there is a prev() though.. there is no function called link() either, but there is a go().. Try this instead?<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"javascript:prev()"... <br />
<a href=http://www.htmlforums.com/archive/index.php/"javascript:go()"...<br />
<a href=http://www.htmlforums.com/archive/index.php/"javascript:next()"...<br />
<br />
And about the cursor... There is a line that says "cursor:crosshair;".. just delete that and try if it works better then.<br />
<br />
As for the rest, I'll take a second look later, gotta make myself useful in front of the TV and rest for a bit ;) You got a whole lot of script errors to sort out..<!--content-->And take a look at these to see how well your HTML is written:<br />
<br />
<!-- m --><a class="postlink" href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.geocities.com%2Farcaneerudite%2FDepartmentalTourPictureViewer.htm&doctype=HTML+4.01+Transitional&charset=iso-8859-1+%28Western+Europe%29">http://validator.w3.org/check?uri=http% ... +Europe%29</a><!-- m --><br />
<br />
<!-- m --><a class="postlink" href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.geocities.com%2Farcaneerudite%2FDepartmentalTour.htm&charset=iso-8859-1+%28Western+Europe%29&doctype=HTML+4.01+Transitional">http://validator.w3.org/check?uri=http% ... ansitional</a><!-- m --><br />
<br />
You should add doctype and character encoding, the validator is currently overriding those..<!--content-->Correcting on the cursor thing, change it from "cursor:crosshair;" to "cursor: hand;" instead...<!--content-->3 posts in a row? couldnt you make those into one post?<!--content-->Ok, firstly, who are you to talk? You post in every thread, even if you know anything about the subject or not, and this post is not much different. I have 46 posts or so now, since December '02, you have 550 since February. But sure, I can explain why I posted three times. I posted post #1, and thought I was done. Then I thought of pasting the W3C links, and I agree, I could have added that into the first post, but it just happened like that. And after that, I wanted to make a correction about the cursor, and If I would have edited that in the first post, that could have been overlooked, if he had already read the post, which I think he has, since he made the changes I suggested to the code already. You're annoying, and obsessed with the 'levels'. You won't gain any respect by spamming and increasing your level, you gain respect by knowing the answers and being friendly. Couldn't you have PM'ed me instead of posting an irrelevant post? Oh, please.<br />
<br />
I'm trying to merge the posts, but the forum won't even allow me to delete my own posts.<!--content-->...at those now.<br />
<br />
I would also like to say thankyou again for the amazingly fast reply!!! For that I have bookmarked this page in favourites :D<br />
<br />
I will make those modifications and check out the validator site.<br />
<br />
..:::: ?::::..<!--content-->SYNTAX ERROR<br />
<br />
hehe, nah, I just found why the hand doesn't show up. There's an error where you define the name of the class "tds"... There's a space between the dot and "tds".. so it should read ".tds"<!--content-->brilliant :D<br />
<br />
Thank you very much.<br />
<br />
..:::: ?::::..<!--content-->im not sure what your talking about "grey box",i suppose your talking about the site map. well, the hand curser is the standard mouse-over curser. IF there is a link there should be the hand, unless you change it.<br />
The greyed box on the bottom left of the screen is not currently behaving like a link (though I haven't actually linked it yet.....) <br />
actually this is the reason right there. you need it to be a link if u want to see the hand to show up.<br />
<br />
<br />
but i will GARENTEE(sp) that your errors on the second page are coming from a script conflict. one of your scripts are messing with the geocites Dhtml dropdown menu thingy. it happens quite often.<!--content-->Nah, did you look at the code? He's not using common HTML anchors, but the onClick event of the table cells. Therefor you have to set it with style="cursor: hand;"<br />
And they are linked by the way, to "#" which is just the top of the current page.<br />
<br />
BTW, I did suspect the same as Legwon about the GeoCities code. At the bottom of the page they include a whole lot of remote .js files, and they might be messing with your other scripts, since for example function names should be unique. Unless you want to look in all those files and compare the scripts, I'd suggest that you rename your functions.. Give them longer names, that more clearly state what they do, and the chance that you experience scripts conflicts is a lot smaller. E.g. 'go()' could be renamed to 'viewFullImageInPopup()' or something of your likings. Try the same with the variables.<br />
My two cents on that topic.<!--content-->...or at least it did in explorer when I last redid it... Thanks again to you :)<br />
<br />
I have to work on bringing up a description of the picture on the right hand side of the viewer along with text to explain how to use the viewer... then I have to get the pictures that open to actually open inside a new javascript window.. Both of these I am not sure about and will try to learn this evening... I hope...<!--content-->i believe that the attribute value 'hand' won't validate (but that might be only xhtml, not sure). Instead you should use 'cursor:pointer'.<!--content-->
 
Back
Top