SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Style Kills JS

  1. #1
    SitePoint Zealot
    Join Date
    Dec 2010
    Posts
    167
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Style Kills JS

    <script type="text/javascript">
    document.write("<div id=\"widgetwrapper\">");
    document.write("<a href=\"\/\"><span class=\"heading1\">Featured <\/span><span class=\"heading2\">Jobs<\/span><\/a><br \/>");
    document.write("<!-- Add Partner's RSS Feed Here! -->");
    document.write("<SCRIPT language=javascript type=text\/javascript charset=utf-8 src=\"http:\/\/www.****.com\/distrib\/jobs\/javascript.cfm?code=VzlcBScBtx4H88Aa1KtXiEa9jqW5RDdk\"><\/SCRIPT>");
    document.write("<!-- End RSS Feed -->");
    document.write("<a href=\"\/\" class=\"post\">Post a Job<\/a>");
    document.write("<\/div>");

    document.getElementById(widgetwrapper).style.width = 100%;
    </script>

  2. #2
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    8,892
    Mentioned
    138 Post(s)
    Tagged
    2 Thread(s)
    Is there a question in here somewhere?
    Rémon - Hosting Advisor

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy

  3. #3
    SitePoint Zealot
    Join Date
    Sep 2010
    Location
    Brighton, UK
    Posts
    136
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks like a widget to me, but if I had to hazard a guess at a bug, I would say that:

    document.getElementById(widgetwrapper).style.width = 100%;

    should be:

    document.getElementById("widgetwrapper").style.width = 100%;

    ?

  4. #4
    SitePoint Zealot
    Join Date
    Dec 2010
    Posts
    167
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by goldfidget View Post
    Looks like a widget to me, but if I had to hazard a guess at a bug, I would say that:

    document.getElementById(widgetwrapper).style.width = 100%;

    should be:

    document.getElementById("widgetwrapper").style.width = 100%;

    ?
    Thank you

  5. #5
    SitePoint Zealot
    Join Date
    Sep 2010
    Location
    Brighton, UK
    Posts
    136
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yw


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
  •