Hi, I sorted it out, but it seems that you cannot get the URL dynamically using javascript, although you can get the title of a page dynamically... You can get the url of a webpage with document.location.href, but you cannot use this string to add a bookmark. If anyone has a solution, i'd like to hear it. About your problem with the skin: - First delete your custom button from the skin and generate a different output. If the skin is still malformed, your problem does not come from the bookmark button. - When your skin is correct, go to Project Set-up and create a new button, style it any way you want, but don't add any inline JavaScript. - Create a new file (with Notepad) and paste the following text, and change the variable url. function bookmarksite(){ //URL of your site, change to the url of your help var url = "http://www.firstpage.com"; //get the title of the top frame var title = parent.document.title; if (window.sidebar) // firefox window.sidebar.addPanel(title, url, ""); else if(document.all)// ie window.external.AddFavorite(url, title); } - Save this file as bookmark.js and add this file as a baggage file to the root of your project. - Open you skin again and select your custom button. Go to the action tab and select JavaScript. - In the files onClick, add: bookmarksite() - Choose for external Javascript file and set bookmark.js. You will now have a functioning bookmark button, although not dynamically. Leave out any <script> and </script> tags and do not insert any pictures in the JavaScript file. Style your buttons only through the Project Set-up, or in whskin_tbars.htm when you like modifying the ouput. Greet, Willam
... Ver mais