More... e zine \ WP showcase \ flash

Solution for the Read more

{ on Oct 18 }

Because a lot of plugins slow down the avarage loading time of the site, Ii’ve done this little tweak:
Use of a simple Javascript in the header plus some lines in your post.

For an example, hit here.

Place this java script somewhere in your header, e.g. after another script, but remove the X [X] in the whole code:
< X script language="JavaScript" X >
function expandIt(getIt){
getIt.style.display=(getIt.style.display=="none")?"":"none";X
}
//-->< X /script X >

Then place this in your post BEFORE the additional content:
< X a href="javascript:expandIt(document.getElementById('link1'))">[+/-] Read more< X /a X>
< X div id="link1" style="display: none;" X >
Additional content here.
< X /div X >

NOTE: this line has to match always : link1
For each post after the first one change the numbers and increase by 1.

I know it’s not validating, but the most plugins are messing up your code anyway, like the weather plugin.

Read the Disclaimer and the copyright license, before downloading any of my work / images / media.




Published in Themes | Tags: | Browse the Archives

miloIIIIVII is a graphic and Web designer based in Munich, who works with clients to create exciting and cutting edge web design
That's all. Want more info? Inspiration?
View the lifestream or the Gallery, subscribe to the full RSS feed or get it via Email.

Share


Related


One excellent Response

  1. 1 Charles Says:

     

    on Oct19 06

    BlogMad smack :-)