PDA

View Full Version : cursor turn to hand problem...



Niv Hamagniv
06-18-2008, 09:14 AM
Hi,

I'm trying to edit .html file with MS-WORD.

It’s a file that supposed to be on my website,
I'm editing it's content with MS-WORD, and save it as .html.

I've loaded an image, and made it a link. So far so good…..

I want the cursor to change to "hand" while the mouse is on the image(link),
but I cant find the right place to insert the " style="cursor:pointer;cursor:hand" "
or whatever the right script is…..


the code of the link-image ( from the MS-WORD html editor ) is:


<p class=MsoNormal dir=RTL><span lang=HE>&nbsp;<a
href="http://www.mbcv.co.il/ArticleB.aspx?ArticleName=276" target="_blank"><span
lang=EN-US dir=LTR style='color:windowtext;text-decoration:none;text-underline:
none'><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600"
o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f"
stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:390pt;
height:31.5pt'>
<v:imagedata src="MBCV_Board2.files/image001.gif" o:title="DIY"/>
<o:lock v:ext="edit" cropping="t"/>
</v:shape><![endif]--><![if !vml]><img border=0 width=520 height=42
src="MBCV_Board2.files/image001.gif" v:shapes="_x0000_i1025"><![endif]></span></a><o:p></o:p></span></p>



can anyone guide me how to create the "effect" of the cursor
showing a "hand" over the image?

Thanks

Niv

Niv Hamagniv
06-18-2008, 09:46 AM
I'm adding a link to an EXAMPLE file:

http://www.mbcv.co.il/Upload/MBCV_Board_TEST2.html

dont be alarmed if you dont understand a word - ITS IN HEBREW.

the example .gif image is IN ENGLISH though.

the image : " this is an example .gif image " is a link to
http://www.mbcv.co.il/ArticleB.aspx?ArticleName=276

its different from the code in the previous post, but the problem is the same...

i want the cursor to show a "hand" on the image-link...

thanks

Niv

Medyman
06-18-2008, 01:34 PM
Wow....

Niv, first of all...I'd suggest Googling (or searching the forums here, actually) in regards to WYSIWYG editors. I don't usually recommend using them because I find hand coding to be the best route -- but a WYSIWYG is 10,000 times better than using MS Word for HTML output.

From your first post, this is the code you should be using:


<a href="http://www.mbcv.co.il/ArticleB.aspx?ArticleName=276" target="_blank" style="cursor:pointer;">
<img border=0 width=520 height=42 src="MBCV_Board2.files/image001.gif" v:shapes="_x0000_i1025">
</a>

All of that junk reduces to that functional HTML. But if you want to continue to use that markup, add your style to the <a> tag as I've done above.

Niv Hamagniv
06-18-2008, 03:29 PM
Hi,

I've done that, but After Saving, the editor "rewrote" back to "normal"

Maybe another way......??

Thanks


Niv

Medyman
06-18-2008, 11:50 PM
Hi,

I've done that, but After Saving, the editor "rewrote" back to "normal"

Maybe another way......??

Thanks


Niv

Are you resaving in Word? It probably doesn't recognize that code so it reverts back to it's default.

Honestly, you should look into alternate software to edit your HTML. MS Word is NOT a HTML editor.

This (http://www.dynamicdrive.com/forums/showthread.php?t=33249) thread has some good recommendations on other software (commercial and free) that you can use that will yield better results for you.

Niv Hamagniv
06-19-2008, 03:49 PM
Hi,

thank you for the information.

on my website i'm using the fck editor.

I'm editing only this particular page ( which is a sort of a jobAdds-board ): http://www.mbcv.co.il/Upload/MBCV_Board_TEST2.html

with WORD, because of the inconvenience to edit all those grey tables with the fck editor.

the "HTML editing" part is minor...
( actualy, the "hand" issue is the first "edit try".....).

I'll try those WYSIWYG editors.....

thanks again

Niv