http://forum.bytesforall.com/showthr...ry+insert+code
but haven't gotten any replies, so I'm reposting as a new thread to see if I can get a quick answer for this simple question.
----------------------
I am trying to use jQuery to show an overlay image the first time a visitor enters the site, then fade it after a few seconds or when the visitor clicks on the entry image. I worked out most of the mechanics and code on a test page, and am now trying it on one of my WP sites which has Atahualpa 3.4.2 loaded.
I can't seem to get any jQuery code to execute. I followed Flynn's directions [in the other thread] to
Add jQuery code to js.php afterMy first simple test is to hide a DIV that floats in front of the page that has an ID of "entryImage". My code is very simple:
jQuery(document).ready(function(){
$("#entryImage").hide();
When that didn't do anything, I added a simple alert line to see if I could get something to execute, but I didn't get the alert popup that I expected:
alert("hello");
For the record, here is my code (in red) in js.php, showing the unmodified lines above and below what I added in grey. Any help would be greatly appreciated!
Code:
jQuery.noConflict(); jQuery(document).ready(function(){ $("#entryImage").hide(); alert("hello"); /* For IE6 */