innerHTML triple quotes issue
| From: | Grega Leskovšek | Date: | Thu, 15 Sep 2011 09:01:20 +0000 |
| Subject: | innerHTML triple quotes issue | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-314866@lists.php.net to get a copy of this message | ||
<h3>My Heavenly profession is being <span class="see"
onmouseover='<?php echo "this.innerHTML=' <img
src=\"http://imagecache2.allposters.com/images/PF_New/102008/3070943.jpg\"
alt =\"close to my heavenly face\" />'";?>'
onmouseout="this.innerHTML='an angel'">an angel</span>,
I first tried this but got a mistake and then I tried to use php to
settle this look above, but got parsing mistake.
although not fully liberated I came to work in this world for <span class="see"
onmouseover="this.innerHTML='<img
src=\"http://t1.gstatic.com/images?q=tbn:ANd9GcTaxIC0HvMMWTlZ2ozXMcwTsqRcStUXRWItISeVyDrVkzVtv2s-AVmn6v3x\"
alt =\"Lord Krishna in His garden of flowers, that's a spiritual world\"
/>'"
onmouseout="this.innerHTML='Lord Krishna\'s Realisation.'">Lord
Krishna's Realisation.</span></h3>
Could YOu please look a t my code and exlpain me what to do if I need
to use triple quotoes - we only have " and ' in onmouseover 1,
thisINNERHTML 2 and in src 3
Please help me!
♥♥♥ When the sun rises I receive and when it sets I forgive! ♥♥♥
˜♥ -> http://moj.skavt.net/gleskovs/ <- ♥
Always, Grega Leskovšek