Results 1 to 4 of 4

Thread: help me with my code

  1. #1
    Join Date
    Sep 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation help me with my code

    What's wrong in my code?
    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
    Last edited by ice-cream; 09-27-2004 at 03:43 AM.

  2. #2
    Join Date
    Sep 2004
    Location
    Indonesia
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Delete the
    Code:
    document.write(post);
    line.

    And I don't think You need var post to be declared, change it to
    Code:
    mauPostNhac("a:/MERRYC~8.GIF","ROMEO & JULIET","The story...","smoon");
    Btw, it's a slash ( \ ) not backslash ( / ), so it's supposed to be
    Code:
    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

  3. #3
    Join Date
    Sep 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, my problem is fixed
    One more thank very much

  4. #4
    Join Date
    Sep 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

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

Bookmarks

Posting Permissions

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