pixelulu
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: jQuery Mouseover Fade IssueThat’s it! Phew, finally. Thank you sir, that little problem completely escaped me ??
Forum: Fixing WordPress
In reply to: jQuery Mouseover Fade IssueNothing. Hmm. I hate it when something that should be so simple is so difficult.
Forum: Fixing WordPress
In reply to: jQuery Mouseover Fade IssueHere is a snippet from my header in the <head> section (script.js is where my function is):
<?php wp_enqueue_script("jquery"); ?> <?php wp_head(); ?> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> <?php include_once("colors.php"); ?> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" /> <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/script.js"></script>
Here is the code from script.js:
<script type='text/javascript'> jQuery(document).ready(function($){ $(".bg").hover( function() { $(this).animate({"opacity": "0"}, "slow"); }, function() { $(this).animate({"opacity": "1"}, "slow"); } ); } </script>
This is how I’m currently using it, however I’ve tried placing it all over when this didn’t work, including trying to put everything in functions.php. I’m new to working with WordPress templates, so it’s very possible I’m missing something simple, but I’m pretty familiar with web programming in general.
Forum: Fixing WordPress
In reply to: jQuery Mouseover Fade IssueI’m having a similar problem but changing the place of my code isn’t fixing anything. I’ve tried multiple ways to import jQuery, tried various code snippets to fade a div upon hover (including the one used in this thread) to no avail. Am I missing something?