rse 100+ Club
Joined: 10 Oct 2004 Posts: 114 Location: Leeds, UK
|
Posted: Fri Aug 25, 2006 10:34 am Post subject: linking to a js source file within javascript. |
|
|
Hi,
I'm trying to build a button for the Live toolbar which adds the page i'm on to my Live Favorites (as Microsoft haven't got around to introducing this feature yet).
The problem I have is that you are only given a small box in which to fit the URL/command on the button creation site (http://gallery.live.com/createcustombutton.aspx).
The code I need to put in is:
| Code: |
| javascript:function qa(){t=document.title;u=escape(location.href);var q='https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-gb&url='+u+'&title='+t+'&top=0';location.href=q;}; qa(); |
Unfortunately there ins't enough space, so what i wondered is if there is a way to call the function with javascript:function qa() then link it to a source file with the function in (http://live.pipedev.eu/toolbar/AddFavorite.js)?
Otherwise can you suggest any ither options?
Thanks
Ads |
|