473,379 Members | 1,260 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

simple toggle with css & jQuery giving jerk in IE

245 100+
Hey all,
I have integrated a simple toggle with css and jQuery in website but it gicving jerk in IE when it hide the content.

Here is the URL of the website.

And it is integrated in Right Link Menu in Body section. By default it show the Link Menu but when we click on the LINK it hide the content but after hiding it gives jerk in IE. Can comebody help me out to sort the problem. I will be very thankful to him/her.


kind regards,
Mar 2 '10 #1
13 7188
Just so you know, my IE won't do your top menu either!

I'm probably going to be shot down for saying this but this would be my solution:
1) Test whether or not the user is using IE (test for document.all or something!)
2) If the user is using IE, disable the minimization animation and just make it disappear

OR

2) If the user is using IE, create a timeout whenever said animation is activated. After a few milliseconds, end the animation.

None of these options is idyllic, however. Sorry, this is about as much as I can think of!
Mar 2 '10 #2
neovantage
245 100+
But the same script working fine in IE from where i got.
here is the link
Mar 2 '10 #3
RamananKalirajan
608 512MB
Hi, I checked in IE its look to be working good. What is the version of IE you are using? I viewed it in IE6. But header menu seems to be misaligned. For that Jerk problem. Just check for this two things

1) Just check for the Div or table width associated with the Toggle Element. If the width gets increased or decreased if we hide that element. The Jerk effect will come.
2) Check the Doc type you have used. If you are not sure about the doc type give "transitional" or "loose" and check it out.

Thanks and Regards
Ramanan Kalirajan
Mar 4 '10 #4
I'm using Internet Explorer v8. Oh and by the way, the script works away from the site, but not on themosaicdesigns.com.
Mar 4 '10 #5
neovantage
245 100+
Thanks RamananKalirajan for feedback and fixing issue.
1. So far cocern as dropdown menu, It works in IE8 and but it is not working in IE6. i dont know as i also posted that problem too in CSS section but havent find any solution yet. if you can help me out to sort out this problem too then i will be very thankful to you.
2. Yes Thanks jerk is fix now in IE too. Reason behind My table width was 249 and div width was 250. But i made the width same and it is working perfectly fine.
Mar 4 '10 #6
Ah yes it does seem to work now.
Mar 4 '10 #7
neovantage
245 100+
But can some one help me out to sort the dropdown meun too in IE6...?

I wil ber very grateful to him/her
Mar 4 '10 #8
RamananKalirajan
608 512MB
Hi,
For the Class in CSS "#nav li.top", or all the <li> in the header has the display "block". Please change it to "inline". Hope it will fix the issue.

Thanks and Regards
Ramanan Kalirajan
Mar 4 '10 #9
neovantage
245 100+
Yeh Thanks it fixed now but i can not manage the indentation of text.
I mean when i a drop down menu is open. there come links
1. Menu
2. Photos | Plugins
...................etc
They are indent 15 pixels from left in IE by using property text-indent:15px but this property is not working in Firefox Mozilla. Is there any other way or there is a problem in syntaxt. Here is my new updated CSS

Expand|Select|Wrap|Line Numbers
  1. .preload1 {background: url(../images/img-04.png);}
  2. .preload2 {background: url(../images/img-04.png);}
  3. #nav {padding:0; margin:0; list-style:none; height:53px; background:url(../images/img-03.png) repeat-x; position:relative; z-index:500; font-family:arial; }
  4. #nav li.top {display:inline; float:left; width:100px; height:53px; text-align:center;}
  5. #nav li a.top_link {display:inline; width:100px; height:50px; line-height:48px; color:#00FFF6; text-decoration:none; font-size:12px; font-weight:normal; padding:0px; cursor:pointer; text-align:center;}
  6. #nav li a.top_link span {float:left; display:inline; width:100px; padding:0 0px 0 0px; height:50px; text-align:center;}
  7. #nav li a.top_link span.down {float:left; display:inline; width:100px; padding:0 0px 0 0px; height:50px; text-align:center;}
  8.  
  9. #nav li:hover a.top_link {width:100px; color:#fff; background: url(../images/img-04.png) no-repeat center top; text-align:center;}
  10. #nav li:hover a.top_link span {width:100px; background:url(../images/img-04.png) no-repeat center top; text-align:center;}
  11. #nav li:hover a.top_link span.down {width:100px; background:url(../images/img-04.png) no-repeat center top; text-align:center;}
  12.  
  13. /* Default list styling */
  14.  
  15. #nav li:hover {position:relative; z-index:200;}
  16.  
  17. #nav li:hover ul.sub{left:1px; top:51px; background: #030606; padding:0px; border:0px solid #FF0000; white-space:nowrap; width:180px; height:auto; z-index:300; text-align:left;}
  18. #nav li:hover ul.sub li{display:inline; height:30px; position:relative; float:left; width:180px; font-weight:normal; text-align:left;}
  19. #nav li:hover ul.sub li a{display:inline; font-size:12px; height:26px; width:178px; line-height:26px; text-align:left; text-indent:15px; color:#00FFF6; text-decoration:none;border-bottom:1px dashed #026A67;}
  20. #nav li ul.sub li a.fly{ background:url(../images/arrow.gif) 150px 6px no-repeat;}
  21. #nav li:hover ul.sub li a:hover {color:#fff; border-color:#fff; text-align:left;}
  22. #nav li:hover ul.sub li a.fly:hover{background:url(../images/arrow_over.gif) 150px 6px no-repeat; color:#fff; text-align:left;}
  23.  
  24.  
  25. #nav li:hover li:hover ul,
  26. #nav li:hover li:hover li:hover ul,
  27. #nav li:hover li:hover li:hover li:hover ul,
  28. #nav li:hover li:hover li:hover li:hover li:hover ul
  29. {left:153px; top:-4px; background: #030606; padding:3px; border:0px solid #FF0000; white-space:nowrap; width:150px; z-index:400; height:auto;}
  30.  
  31. #nav ul, 
  32. #nav li:hover ul ul,
  33. #nav li:hover li:hover ul ul,
  34. #nav li:hover li:hover li:hover ul ul,
  35. #nav li:hover li:hover li:hover li:hover ul ul
  36. {position:absolute; left:-9999px; top:-9999px; width:0; height:0; margin:0; padding:0; list-style:none;}
  37.  
  38. #nav li:hover li:hover a.fly,
  39. #nav li:hover li:hover li:hover a.fly,
  40. #nav li:hover li:hover li:hover li:hover a.fly,
  41. #nav li:hover li:hover li:hover li:hover li:hover a.fly
  42. {background:#121313 url(arrow_over.gif) 140px 6px no-repeat; color:#fff; border-color:#fff;} 
  43.  
  44. #nav li:hover li:hover li a.fly,
  45. #nav li:hover li:hover li:hover li a.fly,
  46. #nav li:hover li:hover li:hover li:hover li a.fly
  47. {background:#030606 url(arrow.gif) 140px 6px no-repeat; color:#00FFF6; border-color:#000;}
  48.  

Hope you will help me out to sort out this bug too
Mar 4 '10 #10
RamananKalirajan
608 512MB
Hi Neovantage,
For that particular class... instead of this "text-indent:15px" use "margin-left:15px". Hope this will solve your problem.

Thanks and Regards
Ramanan Kalirajan
Mar 4 '10 #11
neovantage
245 100+
Greattttttttttt...........
Thanks a lot . It works. Awsome . Thanks again.
Mar 4 '10 #12
RamananKalirajan
608 512MB
Do you know why margin-left works.. where text-indent is not working. Text-indent is used to indent the text in a <p> or <div> or <span>. It will not be working in all the browser as same as expected. But margin-left will work in all the browser. Keep Moving Forward....


Thanks and Regards
Ramanan Kalirajan
Mar 5 '10 #13
neovantage
245 100+
Thanks again for giving me the helpful knowledge. It's really appriciated.
Mar 5 '10 #14

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Toccoa | last post by:
After considerable googling - I mean searching with Google(r) - I could not find javascript on a button or <a href=... to close a window in the latest versions of IE and FireFox. There seemed...
1
by: Mike Bahr | last post by:
Hi All, Im not very well versed in javascript at all so hoping someone can help me out here. I have a page that uses pairs of radio buttons to toggle visibility of some table columns. I need...
1
by: Yansky | last post by:
Hi, I'm having some problems getting this code to work in IE. http://pastebin.ca/454033 It's giving me an error of "Object Expected" in IE. The first...
1
by: DuaneMoraes | last post by:
A new book on jQuery, the powerful JavaScript library, has been announced by Packt In Learning jQuery, Karl Swedberg and Jonathan Chaffer, creators of the popular jQuery learning resource...
1
by: mikeh3275 | last post by:
I'm new to developing in jQuery, so I'm probably doing this wrong. I'm loading a form into a modal dialog box and I'm trying to assign a click event to the button in the form, but I can't seem to...
83
by: liketofindoutwhy | last post by:
I am learning more and more Prototype and Script.aculo.us and got the Bungee book... and wonder if I should get some books on jQuery (jQuery in Action, and Learning jQuery) and start learning about...
2
by: Yi | last post by:
I want to make a simple javascript widget, something looks like the Google AdWords, that people can just post a small section of code on their web page and display some content from my website. ...
4
by: ameshkin | last post by:
I have a checkbox with an ID of svc_tp_1, and an image that corresponds with this checkbox below it. <input type="checkbox" name="checkbox" id="svc_tp_1" value="svc_tp_1" / <img...
20
by: Aaron Gray | last post by:
There does not seem too be anyway to test if two jQuery references are the same element. Given :- ... <div id="1"></div .... Then :- alert( $("#1") == $("#1"))
53
by: souporpower | last post by:
Hello All I am trying to activate a link using Jquery. Here is my code; <html> <head> <script type="text/javascript" src="../../resources/js/ jquery-1.2.6.js"</script> <script...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.