Members Login.
 

Please register HERE to be part of our Community
Contest of the Day.
 
Current Promotions.
 
Earn By Posting
 
Participate in forum and Earn $$$.
  • Referrer Credit - BRL$ 100
  • Positive Rep Cr. - BRL$ 3
  • New Thread Cr.- BRL$ 3
  • Posting Cr. - BRL$ 2
  • Post size Credit
Full List of BRL$ Earnings
Sponsors.
 


Programming Anything related to coding, programming c, c++, vc++, c#, java, delphi, Visual Basic

Reply
  #1 (permalink)  
Old 04-30-2008
New Foot Prints
 
Join Date: Apr 2008
Posts: 13
BRL$: 140.43
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
hockey97 is on a distinguished road
Default need some help with javascript....

Hi I am using the jquery lib which is in javascript and I want to use the hover function and the fade in and out functions.

I created a script already but it is not working at all.

here is the script:

$("document").ready(function() {});
var hide=false;
$("#image").hover(
function () {
if (hide) clearTimeout(hide);
$("#ul1").fadeIn("slow");},
function () {
hide=setTimeout(function(){
$("#ul1").fadeOut("slow")},250);});


What I am trying to do is use a li and ul to display a list of pictures so when the mouse goes over an image specified in the code as #image which is the css definitions of that image the li (list) would slowly fade in and when the mouse goes off the image then the list slowly fades out.

The code above is not working at all and I don't fully know why.

I am using the css definitions specified by #element ect

so the css is like #image{position:fixed;} ect that's an example so the #image is coming from my css file.

if you don't know what jquery is but know javascript then take a look google jquery and click documentaitions they explain the functions hover and fadeIn fadeOut the hover is in the catagory events and fadeIn and fadeOut is in effects.

I read those and still don't understand what I am doing wrong.


Current Promotions... Post a New Thread anywhere on Web Development Board to earn BRL$ 5 for every thread. Post a new Reply there and earn BRL$ 3 for every reply.
Important - Read before posting Please carefully read the Global Rules and Posting Rules for GPT / Buy - Sell Offers / Link Exchange sections before posting.

Last edited by hockey97; 04-30-2008 at 04:30 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
JavaScriptBank.com - 2.000+ free JavaScript temp304 Introduce yourself 0 12-13-2007 05:28 AM
Javascript and AJAX question mr_atom JavaScript 0 09-04-2007 09:50 AM
Can you suggest a good javascript book brl_admin JavaScript 0 07-09-2007 05:00 AM
Validation Vs Javascript Rss_Feeds Search Engine Optimization 0 06-13-2007 01:37 PM
Javascript overlap divs with links - flickering problem mr_atom Buy / Sell Advertisements Board 0 06-11-2007 08:26 AM


 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95