Hello all.
i am having this problem. i have got to correct a whole site worth of links. i want to basically check them to see if they have the title attribute and do not contain onMouse[XXX] events and replace the attributes with an added mouse events that will contain JS statements to change the status bar to what was in the title attribute. i hope this makes sense.
here is an example
<a href="www.somewhere.com" title="Click me now, please." class="something" >
i would want the expression to evaluate to this
<a href="www.somewhere.com" title="Click me now, please." class="something" onMouseOver="window.status='Click me now, please.';return true;" onMouseOut="window.status='';return true;">
Is this even possible?? i have played with it a bit, but honestly i was not even sure if it was possible . i am hoping someone can help please.
thanks in advance!
i am having this problem. i have got to correct a whole site worth of links. i want to basically check them to see if they have the title attribute and do not contain onMouse[XXX] events and replace the attributes with an added mouse events that will contain JS statements to change the status bar to what was in the title attribute. i hope this makes sense.
here is an example
<a href="www.somewhere.com" title="Click me now, please." class="something" >
i would want the expression to evaluate to this
<a href="www.somewhere.com" title="Click me now, please." class="something" onMouseOver="window.status='Click me now, please.';return true;" onMouseOut="window.status='';return true;">
Is this even possible?? i have played with it a bit, but honestly i was not even sure if it was possible . i am hoping someone can help please.
thanks in advance!