views:

299

answers:

1

Hi anyone can help me with converting this into a bookmarklet to load an external site in a iframe inside an overlay like how it is done on http://jquery.com/demo/grey/

thnx

A: 

I would put all your actual code in an external file that you just load. See http://paulisageek.com/nodeSelector/.

The bookmarklet code is :

javascript:(
   function() { 
      var s=document.createElement("script");
          s.charset="UTF-8";
          s.src="http://paulisageek.com/nodeSelector/ns.js";
      document.body.appendChild(s)
   })();

which then in tern loads jquery and does some fancy stuff. It also makes updating it much easier (since you don't have to get your users to change the bookmarklet).

Paul Tarjan
thnx paul am going about the same way now :)
No problem happy to help. Accept and vote up s'il vous plait :)
Paul Tarjan