Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2008
    Location
    Fareham
    Posts
    87
    Tokens
    2,716

    Latest Awards:

    Default [JS] I can't get this too work...

    Well, I have this code and I have tried to make this work about 5 maybe 6 times now and still nothing, here is my code..

    Code:
       objInfo.innerHTML =
            '<a href="#" onclick="ddrivetip(\''<b>Edit</b><br/><br/><input type="submit" name="remove" value="Remove" onclick="deleteObject(\'' + obj[0] + '\');">'\')";><img src="images/icon_edit.gif" align="right" valign="top" border="0"></a>';
    It just stops the whole file from working.

    Anyone know how to do this?
    Forever on the dance floor.

  2. #2
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    Quote Originally Posted by Remotive View Post
    Well, I have this code and I have tried to make this work about 5 maybe 6 times now and still nothing, here is my code..

    Code:
       objInfo.innerHTML =
            '<a href="#" onclick="ddrivetip(\''<b>Edit</b><br/><br/><input type="submit" name="remove" value="Remove" onclick="deleteObject(\'' + obj[0] + '\');">'\')";><img src="images/icon_edit.gif" align="right" valign="top" border="0"></a>';
    It just stops the whole file from working.

    Anyone know how to do this?
    You haven't really told us what you want to do; but maybe this will help.
    PHP Code:
    javascript:
    document.getElementById("objInfo").innerHTML 'lala'
    Maybe a page to your JS source / Page - Good luck with it.
    Hi, names James. I am a web developer.

  3. #3
    Join Date
    Apr 2008
    Location
    Fareham
    Posts
    87
    Tokens
    2,716

    Latest Awards:

    Default

    Well, really all I want it to do is be the same as normal HTML but be in an innerHTML field.

    Seeing as it startes with ' and ends with '; there is not much I can do for my javascript onclicks.

    If you know what I mean.
    Forever on the dance floor.

Posting Permissions

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