Pixelated a phpBB Template by SkaidonDesigns
 
Cheapest Web Software Support Area Forum Index www.cheapestwebsoftware.com
Play with the Best, be the Best!
Links Organizer
FAQ
Search
Memberlist
Usergroups
Profile
Log in to check your private messages
Log in

The Mightiest Webmaster Solutions Ever
Rocket Pinger
Rocket Pinger
Plug Rush
Plug Rush
Blogs Automater
Blogs Automater
Porn Blog Space
Porn Blog Space

Haven't registered yet? Do it here now!
Bookmark snippet

 
Post new topic   Reply to topic    Cheapest Web Software Support Area Forum Index -> Blogs Organizer
View previous topic :: View next topic  
Author Message
nicedreams



Joined: 09 Sep 2007
Posts: 31

PostPosted: Sat Sep 15, 2007 5:53 am    Post subject: Bookmark snippet Reply with quote
I'm trying to add some bookmark script as a snippet, but it doesn't show up when I place the snippet tag in the template.

What is wrong with this code:

Code:
  <script>
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >=

4)) {
   var url="%%BLOG_URL%%";
   var title="%%TITLE%%";

   document.write("<a href=\"javascript:window.external.AddFavorite(url,title);\"

onMouseOver=\"window.status='Add to your favorites!'; return true;\"   

onMouseOut=\"window.status=''; return true;\">Bookmark</a>");
  }
  else {
   var msg = "Bookmark";
   if(navigator.appName == "Netscape") msg += "  (CTRL-D)";
   document.write(msg);
  }
  </script>


Or can you suggest some better bookmarking code?
Back to top
View user's profile Send private message

Author Message
Atanasis
Owner


Joined: 22 May 2004
Posts: 4284
Location: The Net

PostPosted: Sat Sep 15, 2007 1:58 pm    Post subject: Reply with quote
well, it should be okay. the only thing i see that could be problemable are the backslashes. Try it this way:

Code:

  <script>
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >=

4)) {
   var url="%%BLOG_URL%%";
   var title="%%TITLE%%";

   document.write('<a href="javascript:window.external.AddFavorite(url,title);"

onMouseOver="window.status=\\'Add to your favorites!\\'; return true;"   

onMouseOut="window.status=\\'\\'; return true;">Bookmark</a>");
  }
  else {
   var msg = "Bookmark";
   if(navigator.appName == "Netscape") msg += "  (CTRL-D)";
   document.write(msg);
  }
  </script>

_________________
Thanks,
Kaktusan

Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger ICQ Number

Author Message
nicedreams



Joined: 09 Sep 2007
Posts: 31

PostPosted: Sat Sep 15, 2007 6:13 pm    Post subject: Reply with quote
Thanks, I was missing an end }
Back to top
View user's profile Send private message

Display posts from previous:   
Post new topic   Reply to topic    Cheapest Web Software Support Area Forum Index -> Blogs Organizer All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group