DTP


 
Lively discussions on the graphic arts and publishing — in print or on the web


Go Back   Desktop Publishing Forum > General Discussions > Web Site Building & Maintenance

Reply
 
Thread Tools Display Modes
Old 05-01-2006, 09:56 AM   #1
dthomsen8
Member
 
dthomsen8's Avatar
 
Join Date: Aug 2005
Location: Philadelphia, PA 19130
Posts: 2,158
Default Bookmark this page!

You know those lines on a web site that say "Bookmark this page!" or something like it? How is that done? I cannot find the HTML from doing Google searches, so I have to ask in here.
dthomsen8 is offline   Reply With Quote
Old 05-01-2006, 11:08 AM   #2
Kelvyn
Staff
 
Kelvyn's Avatar
 
Join Date: Feb 2005
Location: In the Heart of the English Lake District
Posts: 1,381
Default

Usually done by JavaScript. This example script works with IE and Firefox.

   
__________________
Kelvyn

Web site design, hosting and marketing, Keswick in the UK Lake District

If you are planning a visit to Keswick then try Keswick Tourist Information website

Kelvyn is offline   Reply With Quote
Old 05-01-2006, 02:56 PM   #3
dthomsen8
Member
 
dthomsen8's Avatar
 
Join Date: Aug 2005
Location: Philadelphia, PA 19130
Posts: 2,158
Default JavaScript not working

Quote:
Originally Posted by Kelvyn
Usually done by JavaScript. This example script works with IE and Firefox.
Thanks, Kelvyn. I have transferred the example to my learning web site,
http://www.19103.biz/index.htm

but so far I have not succeeded in doing a bookmark. In the original code, "bookmark" is also spelled "bookMark" and I don't know if there should be a difference with the capital M. I made it lower case throughout, but so far I get an error in IE and in Opera. I will also try netscape.
dthomsen8 is offline   Reply With Quote
Old 05-02-2006, 04:27 AM   #4
donmcc
Member
 
Join Date: Feb 2005
Location: Sarnia, Canada
Posts: 1,122
Default

In Javascript case is important. If it was bookMark, and you use bookmark, it may seem grammatically correct, but programmatically (???) it is wrong. Basically, JS treats bookMark and bookmark as two different variables. I suspect this is the root of your errors.
donmcc is offline   Reply With Quote
Old 05-02-2006, 04:51 AM   #5
dthomsen8
Member
 
dthomsen8's Avatar
 
Join Date: Aug 2005
Location: Philadelphia, PA 19130
Posts: 2,158
Default Case is important, consistency may be essential

Quote:
Originally Posted by donmcc
In Javascript case is important. If it was bookMark, and you use bookmark, it may seem grammatically correct, but programmatically (???) it is wrong. Basically, JS treats bookMark and bookmark as two different variables. I suspect this is the root of your errors.
So maybe it has to be bookMark in one place, and bookmark in another, to work? I would think that consistency would be essential. Let me fool with it some more, though.
dthomsen8 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Photocollage web page up... terrie Images 6 04-18-2006 02:15 PM
Skype from web page Kelvyn Web Site Building & Maintenance 26 11-07-2005 05:33 AM


All times are GMT -8. The time now is 07:27 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Contents copyright 2004–2014 Desktop Publishing Forum and its members.