Do you know when you "wave" your cursor over a photo or a url link and it appears as I would like to put it "clickable" or the cursor changes into a "hand". My issue is this, on my site I have a photo that I've changed the source code to and the photo is
actually "clickable" but if you "wave" your cursor over the photo it dosen't appear "clickable" Does anyone know how I would fix that ? The source code is below.
scm22ri
Member
3 Points
105 Posts
How to make photos "appear clickable" ?
Dec 21, 2007 02:41 PM|LINK
Hi Everyone,
(I apologize for my terrible terminology)
Do you know when you "wave" your cursor over a photo or a url link and it appears as I would like to put it "clickable" or the cursor changes into a "hand". My issue is this, on my site I have a photo that I've changed the source code to and the photo is actually "clickable" but if you "wave" your cursor over the photo it dosen't appear "clickable" Does anyone know how I would fix that ? The source code is below.
<
asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="~/Ringtone-Carrier-Photos/alltel-Complimentary Ringtones.jpg" onClick="makeUrl('http://fbgdc.com/click/?s=8785&c=53726&subid=yahoo=flycell=alltel')" Target="_blank">Alltell 15 Complimentary Ringtones</asp:HyperLink></td>http://tinyurl.com/2tca8w (This is the page, just "wave" your cursor over the "alltell photo" and you will know what I'm talking about.)
Thanks everyone for there help.
christiandev
Star
8607 Points
1841 Posts
Re: How to make photos "appear clickable" ?
Dec 21, 2007 03:14 PM|LINK
you need to use a css style, style="cursor:hand"
Regards, Christiandev (@chrisdev80), MCPD Web (2 & 4) & MCTS Windows (www.ScoreDonkey.com)
KoenSt
Member
466 Points
89 Posts
Re: How to make photos "appear clickable" ?
Dec 21, 2007 03:20 PM|LINK
That's because you're using the OnClick event with JavaScript behind it instead of the href property in your HyperLink.
Is there a specific reason why you're using JavaScript to create the actal link?
That way future readers will know which post solved your issue.
aadreja
Contributor
2090 Points
354 Posts
Re: How to make photos "appear clickable" ?
Dec 21, 2007 03:21 PM|LINK
try this
<asp:HyperLink ID="HyperLink1" runat="server" onmouseover="javascript:this.style.cursor='hand'" onmouseout="javascript:this.style.cursor='pointer'" ImageUrl="~/Ringtone-Carrier-Photos/alltel-Complimentary Ringtones.jpg"
onClick="makeUrl('http://fbgdc.com/click/?s=8785&c=53726&subid=yahoo=flycell=alltel')"
Target="_blank">Alltell 15 Complimentary Ringtones</asp:HyperLink>
Ritesh
---------------------------------------------
Please do not forget to mark as Answer if my reply is helpful.
JustinHolton
Member
516 Points
114 Posts
Re: How to make photos "appear clickable" ?
Dec 21, 2007 05:37 PM|LINK
<asp:HyperLink ID="HyperLink1" runat="server" onClick="makeUrl('http://fbgdc.com/click/?s=8785&c=53726&subid=yahoo=flycell=alltel')" Target="_blank"> <asp:Image ID="Image1" style="cursor:pointer" ImageUrl="http://imagecache2.allposters.com/images/pic/CAN/901~Pic-Island-Posters.jpg" AlternateText="Alltell 15 Complimentary Ringtones" runat="server" /> </asp:HyperLink>cafeasp
Member
559 Points
103 Posts
Re: How to make photos "appear clickable" ?
Dec 22, 2007 12:22 AM|LINK
quick question: why does visual studio says attribute not valid ?
Thanks
Jeev
All-Star
24182 Points
3719 Posts
Re: How to make photos "appear clickable" ?
Dec 22, 2007 01:01 AM|LINK
Because the asp.net hyperlink has no such attribute. If you need to add an attribute use this in the code behind page
link.Attributes.Add("onmouseover"," javascript:......")
link is the assumed id
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you get the answer to your question, please mark it as the answer.
ArunTyagi
Member
89 Points
121 Posts
Re: How to make photos "appear clickable" ?
Dec 22, 2007 05:21 AM|LINK
<
asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="~/img/justAdded_thumb_sample.jpg" NavigateUrl="~/Default2.aspx">HyperLink</asp:HyperLink>To Make a Click Able You Have to give the Navigate Url .....
sandeepthekk...
Member
563 Points
165 Posts
Re: How to make photos "appear clickable" ?
Dec 22, 2007 06:45 AM|LINK
www.codeproject.comscm22ri
Member
3 Points
105 Posts
Re: How to make photos "appear clickable" ?
Dec 22, 2007 08:29 PM|LINK
Hi,
Thanks for the replys everyone. I've tried all of the belo code and nothing seems to be working.
"That's because you're using the OnClick event with JavaScript behind it instead of the href property in your HyperLink.
Is there a specific reason why you're using JavaScript to create the actal link?"
I need to use the Javascript because I need to track my affiliate sales and which keywords convert and which ones don't convert.
Please advise.
Thanks