www.webdeveloper.com
Results 1 to 2 of 2

Thread: problem in javascript excuation

Hybrid View

  1. #1
    Join Date
    Feb 2011
    Posts
    90

    problem in javascript excuation

    I have the following code:
    HTML Code:
    <!DOCTYPE html>
    <html>
    <head>
    	<script type="text/javascript">
    	function gallery_3595(){
    	 document.getElementById("full-details-box").style.display='block';
    	 document.getElementById("full-details-box").innerHTML="<div class='gallery'>"+
    	"<h1 class='box-headline'>גלרייה</h1><img src='www.diur-plus.co.il\pics\466\ma_1_3595_1.jpg' width=\"300\" height=\"300\" id='big-picture'/><br/>"+
    	"<img src='www.diur-plus.co.il\pics\466\ma_1_3595_1.jpg'  width=\"100\" height=\"100\" class='small-picture' /><img src='www.diur-plus.co.il\pics\466\ma_1_3595_2.jpg'  width=\"100\" height=\"100\" class='small-picture' /><img src='www.diur-plus.co.il\pics\466\ma_1_3595_3.jpg'  width=\"100\" height=\"100\" class='small-picture' /><img src='www.diur-plus.co.il\pics\466\ma_1_3595_4.jpg'  width=\"100\" height=\"100\" class='small-picture' /><img src='www.diur-plus.co.il\pics\466\ma_1_3595_5.jpg'  width=\"100\" height=\"100\" class='small-picture' /></div>";
    	}
    	</script>
    	<style type="text/css">
    		
    	</style>
    </head>
    <body bgcolor="white">
    	<div id="full-details-box"> </div>
    </body>
    </html>
    now when I execute it instead of the following:
    HTML Code:
    <div id="full-details-box"><div class='gallery'>
    	<h1 class='box-headline'>גלרייה</h1><img src='www.diur-plus.co.il\pics\466\ma_1_3595_1.jpg' width=\"300\" height=\"300\" id='big-picture'/><br/>
    	<img src='www.diur-plus.co.il\pics\466\ma_1_3595_1.jpg'  width=\"100\" height=\"100\" class='small-picture' /><img src='www.diur-plus.co.il\pics\466\ma_1_3595_2.jpg'  width=\"100\" height=\"100\" class='small-picture' /><img src='www.diur-plus.co.il\pics\466\ma_1_3595_3.jpg'  width=\"100\" height=\"100\" class='small-picture' /><img src='www.diur-plus.co.il\pics\466\ma_1_3595_4.jpg'  width=\"100\" height=\"100\" class='small-picture' /><img src='www.diur-plus.co.il\pics\466\ma_1_3595_5.jpg'  width=\"100\" height=\"100\" class='small-picture' /></div> </div>
    I get:
    HTML Code:
    <div id="full-details-box"><div class='gallery'>
    	<h1 class='box-headline'>גלרייה</h1>
    <img src=​"www.diur-plus.co.ilpics&6ma_1_3595_1.jpg" width=​"300" height=​"300" id=​"big-picture"><br/>
    <img src=​"www.diur-plus.co.ilpics&6ma_1_3595_1.jpg" width=​"100" height=​"100" class=​"small-picture"><img src=​"www.diur-plus.co.ilpics&6ma_1_3595_2.jpg" width=​"100" height=​"100" class=​"small-picture"><img src=​"www.diur-plus.co.ilpics&6ma_1_3595_3.jpg" width=​"100" height=​"100" class=​"small-picture"><img src=​"www.diur-plus.co.ilpics&6ma_1_3595_4.jpg" width=​"100" height=​"100" class=​"small-picture"><img src=​"www.diur-plus.co.ilpics&6ma_1_3595_5.jpg" width=​"100" height=​"100" class=​"small-picture"></div> </div>
    and I don't understand why it change the '\466' to '&6ma'

  2. #2
    Join Date
    Feb 2012
    Location
    Bokaro Steel City (Jharkhand), India!
    Posts
    194
    I do not see any errors.
    I tried executing it and it worked fine!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles