Helpful Information
 
 
Category: Javascript
help me with my code

What's wrong in my code?

<SCRIPT LANGUAGE="JAVASCRIPT">
<!--hide me
function mauPostNhac(imagelink,title,content,name)
{
window.document.write("<TABLE ALIGN=CENTER BGCOLOR=#D7FFD7 BORDERCOLOR=green CELLPADDING=4 CELLSPACING=4 BORDER=5>");
window.document.write("<TR><TD ALIGN=CENTER VALIGN=MIDDLE>");
window.document.write("<IMG galleryIMG=no SRC="+imagelink+"><BR><BR>");
window.document.write("<br><B><FONT SIZE=5 COLOR=RED>"+title+"</FONT></B><BR>");
window.document.write("<center><div align='center' style='border-style: solid; border-width: 1; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; width:350; height:21'>"+content+"</div></center><BR><BR>");
window.document.write("<FONT SIZE=3 COLOR=blue>ARTIST: "+name+"</FONT></TD></TR></TABLE>");
}
//show me-->
</SCRIPT>
</head>

<body>

<script language="javascript">
<!--hide
var post=mauPostNhac("a:/MERRYC~8.GIF","ROMEO & JULIET","The story...","smoon");
document.write(post);
//hide-->
</script>
Please view the picture
http://www.xpphotoalbum.com/data/13622/12893errorpic.gif?9919

Delete the
document.write(post); line.

And I don't think You need var post to be declared, change it to

mauPostNhac("a:/MERRYC~8.GIF","ROMEO & JULIET","The story...","smoon");

Btw, it's a slash ( \ ) not backslash ( / ), so it's supposed to be
a:\MERRYC~8.GIF.
Oh, and if I visit Your website, there is a 99,99% chance I wont be able to see the image. Why? Because If You declared it as "a:\MERRYC~8.GIF", so My browser will look MERRYC~8.GIF file in My floppy drive :p

Thanks, my problem is fixed
One more thank very much

I have the forum, you can help me to take the tips when the mouse is over the title topic in the table. :confused: :) All I want is the same to your forum, exactly this forum.










privacy (GDPR)