Tuesday, September 27, 2011

Smothly Go On Top With Hep of Jquery

Hello Friends

Today I bring for you how could you go on top of the page smoothly.
here is small piece of code just put it in head of your page and call the function.
{ src="http://code.jquery.com/jquery.js">}{/script>}
{ language="javascript">}{ function gotop(){ < $('html,body').animate({ scrollTop: $("#demo").offset().top}, 1000);}


after that just call that function on click event of the anchor link or button

Note - Here #demo is the div id. Write the bigger test inside of this div including id put link out side of the div and just see the MAGIC. Replace {} with <>

Thursday, September 1, 2011

Problem in Custom premalink.

Hi Friend
Today i will Give small but very tricky tip regarding wordpress.
Are you trying for Premalinks setting. In that one one option is theere "custom structure" where we should have give value is /%postname%
and then save.
But when we check the blog site or url page not found this type of error is comming.
You tried somany times all setting is work well but this one is not working. you
check in .htacess file also. Then what ?
Solution is
Go in
Xampp
apache
conf
httpd.conf
and
search for this line
#LoadModule rewrite_module modules/mod_rewrite.so
and remove # the restart your localhost server.
But before doing this make a back up of this file.
Done use your wordpress custom premaliks and enjoy.