www.webdeveloper.com
Results 1 to 2 of 2

Thread: twitter bookmarklet help

  1. #1
    Join Date
    Sep 2004
    Location
    Sri Lanka
    Posts
    469

    Question twitter bookmarklet help

    Hi,

    I am working on customizing the functionality of a twitter bookmarklet which is runing with following code.

    Code:
    javascript:(function(){window.twttr=window.twttr||{};var D=550,A=450,C=screen.height,B=screen.width,H=Math.round((B/2)-(D/2)),G=0,F=document,E;if(C>A){G=Math.round((C/2)-(A/2))}window.twttr.shareWin=window.open('http://twitter.com/share','','left='+H+',top='+G+',width='+D+',height='+A+',personalbar=0,toolbar=0,scrollbars=1,resizable=1');E=F.createElement('script');E.src='http://platform.twitter.com/bookmarklets/share.js?v=1';F.getElementsByTagName('head')[0].appendChild(E)}());
    It automatically tracks the url of the page having bookmarklet , now I want to identify the parameter which passes the url of the page containing the bookmarklet.

    Thank you

  2. #2
    Join Date
    Mar 2007
    Location
    USA
    Posts
    449
    It looks like the document object which contains the url info is being passed to a variable F like so:

    F=document

    The script then parses out this object on it's own versus feeding the url into it directly.
    infinityspiral.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles