Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

When I create a Hyperlink to a Youtube video in a text cell the link is colored blue like it would be in a browser. However, the mouse cursor does not change when it hovers over a link.

This causes my students to think that the link doesn't work or isn't really a link. To them it just looks like I have blue colored text.

share|improve this question

2 Answers 2

up vote 4 down vote accepted

If it is in TextCell, which I'm not very experienced with, you can do for example this:

  • create an inline cell, with Ctrl+9
  • put there your link with: MouseAppearance[#, "LinkHand"] &@Hyperlink["test", "testlink"]
  • Evaluate In Place with Evaluate menu.

and it should give what you want.

share|improve this answer

I use the GUI to insert link to a text by highlighting text -> Toolbar: Insert -> hyperlink. When I hover the mouse over the blue text it does change from I to arrow.

snapshot

Then I use the Shift + ctrl/cmd + E to reveal the expression of cell:

Cell[RawData["\<\
Cell[TextData[{
 ButtonBox[\"test\",
  BaseStyle->\"Hyperlink\",
  ButtonData->{
URL[\"http://mathematica.stackexchange.com/questions/37513/how-\
can-i-change-mouse-hover-\\
behavior-for-hyperlinks-in-a-notebook\"], None},
  ButtonNote->
   \"http://mathematica.stackexchange.com/questions/37513/how-can-i-\
change-mouse-hover-behavior-\\
for-hyperlinks-in-a-notebook\"],
 \" test2\"
}], \"Text\",
 CellChangeTimes->{{3.594011671826529*^9, 3.594011727217702*^9}}]\
\>"], "Text",
 CellChangeTimes->{{3.594011671826529*^9, 3.594011727217702*^9}}]

As long as the ButtonBox is present, you should be able to see the change of the cursor when hovering.

share|improve this answer
    
Thank you for your answer. Is there a property that I can set in my stylesheet to get this behavior by default? –  YequalsX Nov 21 '13 at 12:18
    
If you insert from the GUI, you will get this behavior by default and I think this is independent from stylesheet. –  Shenghui Nov 21 '13 at 19:13
    
I don't get it when I insert using the GUI. –  YequalsX Nov 21 '13 at 20:42
    
If you use the show expression key bind, you do not see:TextDataor ButtonBox ? –  Shenghui Nov 21 '13 at 22:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.