ThemeForest

Posts by MsTrends

109 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Pakistan
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
MsTrends says

why wouldnt you simply use the no script tag with an html5 doc type

would ie 6 or old browsers support html5 doc type? if not can i use above mentioned hack (which i have mentioned) in my theme?

109 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Pakistan
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
MsTrends says

Hi,

Recently i was searching for embedding external css files only if JavaScript of User’s browser is Disabled. I got this link:

http://stackoverflow.com/questions/3821932/how-to-load-an-external-css-file-if-javascript-is-disabled

In this link a person mention this hack:

Try this:



<html>
  <head>
    <script type="text/javascript"> document.write('<'+'!--'); </script>
       <link href="non-js.css" rel="stylesheet" type="text/css" />
    <!-- -->  
  </head>
  <body>
      <script type="text/javascript"> document.write('<'+'!--'); </script>
       Visible when no-JS 
      <!--  --> Always visible
  </body>
</html>

Hack, but it is correct with HTML . If JS is enabled then comment start control tag is printed into page – then second start tag is ignored and ending tag closes commented content. So if JS is enabled link tag will be commented out and not downloaded at all.

My question is can i use this hack for embedding external Css if js is disabled, in my theme which i’m creating for themesforest?

109 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Pakistan
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
MsTrends says

problem here is that, the ul list overflowing right hand side, is not specific. It may be 2nd, 3rd or 4th ul list, according to top level links distance from window folding. i want to chk if the width of ul list which is going to appear is more than , remaining visible space in window, ul list should appear on left hand side of its parent list. how can i do this?

ps. sorry for my bad english, hope u will understand.

109 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Pakistan
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
MsTrends says

Hi, I have 3 level menu. I want the sub menus to be open in left direction instead of right. Because the menu is in top right corner of the website, and when submenu are displayed. They goes outside the website window and browser shows the scroll bar, which doesnt look nice.

I hope, u guys understand what i m trying to say.

Please take a look at the screenshot to get the exact idea. http://i48.tinypic.com/2sa1dv9.jpg

Thanks

109 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Pakistan
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
MsTrends says

Problem solved by only addition of a container div. chk this: http://stackoverflow.com/questions/4627157/jquery-hover-flickering-issue

109 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Pakistan
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
MsTrends says

@sevenspark: thanks for quick reply, i have used ur suggested solution but unfortunately it is not working u can see here:

http://jsfiddle.net/yprPn/2/

I have used hoverIntent but it is also not working. :(

109 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Pakistan
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
MsTrends says

Hi, Hope u people will be fine.I have a problem with jquery hover animation. Here is my basic code:

http://jsfiddle.net/kr9pY/3/

in this demo u can see when we hover on div with id=”container”, a div with class=”nav” fades in. But the problem is that after doing this if i hover on div with class=”nav” the div fades out and in again, and if i mover cursor slightly within .nav div, it repeats this behavior repeatedly. I don’t want to this behaviour when we hover on .nav div or mover cursor within this div.

Thank, and sorry for my bad english.

109 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Pakistan
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
MsTrends says

@valendesigns: Hi valendesigns you rock, Its awesome. Its working fine if is activate it as a plugin. However if i directly include this plugin in my theme its giving error something like this:

Failed to open stream: Invalid argument in C:\wamp\www\wordpress\wp-content\themes\default\lib\admin\option-tree\classes\class.admin.php on line 372
109 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Pakistan
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
MsTrends says

@SplitV : Thanks for your time for solving my problem. Now i’m using following code, but it is not enableing links on li items which have no child.

http://pastebin.com/xRQJaWj2

109 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
  • Pakistan
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
MsTrends says

@SplitV: thanks SplitV for usefull reply, as far as first problem is concerned it has been solved with your method.

About 2nd problem,being a newbie i want to ask how to apply has() function in my given jquery code to apply toggle function or in other words disable link only on those links which have some nested ul?

by
by
by
by
by