I have the below code

<script="text/javascript"><a href="costs_prices_rates_book_editing.php" onmouseout="turnoff(´pic2)" onmouseover="lightup(´pic2´)"> <img alt="Get a FREE Book Editing Sample" name="pic2" src="images/pricequote.jpg" style="border: 0px solid; width: 215px; height: 51px;" /></a></script>

What is happening ? when I try to save onmouseover="turnoff'pic2'),the system is not able to save the file and the changes remains unchanged and the previous turnoff('pic2) appears without quotes ,can anyone help me out why it is happening so??

Recommended Answers

All 3 Replies

Member Avatar for diafol

SHouldn't this be posted to the js forum? You seem to have some weird quotes here as opposed to the single quotes you should be using. Are you using Word or something to type out your code??

You also have a quote missing from the turnoff(´pic2).

<script="text/javascript"><a href="costs_prices_rates_book_editing.php" onmouseout="turnoff('pic2')" onmouseover="lightup('pic2')"> <img alt="Get a FREE Book Editing Sample" name="pic2" src="images/pricequote.jpg" style="border: 0px solid; width: 215px; height: 51px;" /></a></script>

SHouldn't this be posted to the js forum? You seem to have some weird quotes here as opposed to the single quotes you should be using. Are you using Word or something to type out your code??

You also have a quote missing from the turnoff(´pic2).

<script="text/javascript"><a href="costs_prices_rates_book_editing.php" onmouseout="turnoff('pic2')" onmouseover="lightup('pic2')"> <img alt="Get a FREE Book Editing Sample" name="pic2" src="images/pricequote.jpg" style="border: 0px solid; width: 215px; height: 51px;" /></a></script>

yes but when I try saving that it changes to that weird quotes but in second one function
lightup('pic2') it saves but in first function it does not allow me to save..turnoff('pic2') ,it changes to that weird one automatically,

Thanks

Member Avatar for diafol

What, you are using Word??
If so, stop it - immediately.
Use a text editor (Notepad or Notepad++).

I won't even go into turning off smart quotes.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.