WordPress.org

Ready to get started?Download WordPress

Forums

Javascript problem in Elegant Grunge (2 posts)

  1. cybercli
    Member
    Posted 3 years ago #

    Well, it appears my previous post was too complicated for anyone to answer so I'll try the simple version.

    I am using a CSS popup subscribe box which uses javascript to enable it if no cookie is present. I have places all the code in the header.php with the javascript just before the </head> but after the <?php wp_head(); ?>. It uses an OnLoad function in the opening body tag which calls the javascript.

    I think the problem is with the wordpress theme and layout somewhere because the same script works fine in another non-worpress website. Check out http://www.deesact2.com . If the message box appears it works and the problem must be on my side.

    Thanks

  2. cybercli
    Member
    Posted 3 years ago #

    I just installed it on another wordpress theme and it works fine. The problem may be with the "onload" call in the body tag. This is what I have in the website that does not work:
    <body onload="loadMsg('msgbox');" <?php if ( defined('EG_BODY_CLASS') ) echo 'class="'.EG_BODY_CLASS.'"'; ?>>

Topic Closed

This topic has been closed to new replies.

About this Topic