Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Latest Jquery compatibility.

Featured Replies

To use this piece of code in wordpress, I need to make it compatible with the latest Jquery library, 1.3.2.

 

However, the current code isnt, and that presents the problem for me. With no real knowledge of javascript, I understand none of whats going wrong.

 

Does anyone have time to lend a hand updating this code to work with Jquery 1.3.2?

<script type="text/javascript" charset="utf-8">
//<![CDATA[
$(document).ready(function() {

  function addMega(){
	$(this).addClass("hovering");
	}

  function removeMega(){
	$(this).removeClass("hovering");
	}

var megaConfig = {
	 interval: 100,
	 sensitivity: 10,
	 over: addMega,
	 timeout: 100,
	 out: removeMega
};

$("li.mega").hoverIntent(megaConfig)


});


//]]>
</script>

 

This script is used in conjunction with Jquery, and http://ava-game.com/wp-content/themes/avagame/jquery.hoverIntent.minified.js which I've checked with the authors site to find out that it is compatible, so it in theory should be the first piece of code thats the problem.

  • Author

Help! xD

 

I've emailed the original creator of the code, but she hasnt replied, and it was a while ago she wrote it. Can anyone see whats not compatible with the latest library?

  • Author

Well does anyone know of any similar code that works with the latest library?

 

This is killing me =(

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.