PDA

View Full Version : help me with my code



ice-cream
09-27-2004, 04:40 AM
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

gigabites
09-27-2004, 05:33 AM
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

ice-cream
09-27-2004, 06:44 AM
Thanks, my problem is fixed
One more thank very much

ice-cream
09-27-2004, 06:49 AM
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.