neto1337
Apr 9, 2009, 02:11 PM
Hi, I am making my first website, blog. This website is all in html and I want to change a part of it to java to only have to change one file to modify the content on every page.
I used this html to java converter: Cut & Paste HTML to JavaScript converter (http://www.javascriptkit.com/script/script2/jstohtml.shtml).
What I tried to convert is the about me section at Neto's Place (http://www.netoforum.com). Everything works find except the picture which is not loaded. Can anyone help me fix this?
here is the original html:
<!-- Right column -->
<div id="col" class="noprint">
<div id="col-in">
<!-- About Me -->
<h3><span><a href="/aboutme.html">About Me</a></span></h3>
<div id="about-me">
<p><img src="images/me2.bmp" id="me" alt="Yeah, its me!" />
<strong>Ernesto Rodriguez Leyva</strong><br />
Age: 21<br />
<br />
<a href="/index.html">www.netoforum.com</a></p>
</div> <!-- /about-me -->
Here is what it looks like now in my html document:
<!-- Right column -->
<div id="col" class="noprint">
<div id="col-in">
<script type="text/javascript" src="testing1.js" >
</script>
Here is that testing.js looks like:
info="<h3><span><a href="/aboutme.html">About Me</a></span></h3>" +
"" +
" <div id="about-me">" +
" <p><img src="images/me2.bmp" id="me" alt="Yeah, its me!" />" +
" <strong>Ernesto Rodriguez Leyva</strong><br />" +
" Age: 21<br />" +
" <br />" +
" <a href="/index.html">www.netoforum.com</a></p>"
document.write(info)
Thanks! :)
I used this html to java converter: Cut & Paste HTML to JavaScript converter (http://www.javascriptkit.com/script/script2/jstohtml.shtml).
What I tried to convert is the about me section at Neto's Place (http://www.netoforum.com). Everything works find except the picture which is not loaded. Can anyone help me fix this?
here is the original html:
<!-- Right column -->
<div id="col" class="noprint">
<div id="col-in">
<!-- About Me -->
<h3><span><a href="/aboutme.html">About Me</a></span></h3>
<div id="about-me">
<p><img src="images/me2.bmp" id="me" alt="Yeah, its me!" />
<strong>Ernesto Rodriguez Leyva</strong><br />
Age: 21<br />
<br />
<a href="/index.html">www.netoforum.com</a></p>
</div> <!-- /about-me -->
Here is what it looks like now in my html document:
<!-- Right column -->
<div id="col" class="noprint">
<div id="col-in">
<script type="text/javascript" src="testing1.js" >
</script>
Here is that testing.js looks like:
info="<h3><span><a href="/aboutme.html">About Me</a></span></h3>" +
"" +
" <div id="about-me">" +
" <p><img src="images/me2.bmp" id="me" alt="Yeah, its me!" />" +
" <strong>Ernesto Rodriguez Leyva</strong><br />" +
" Age: 21<br />" +
" <br />" +
" <a href="/index.html">www.netoforum.com</a></p>"
document.write(info)
Thanks! :)