Free Code Snippet: DHTL News Ticker for WebDNA

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47830
interpreted = N
texte = Hey all,Nothing better to do on a Sunday, so I put this little gem together. Demo and file downloads available at http://www.garykrockover.com/newsticker/ and later on tonight at the various WebDNA sites that host these things.>From my readme.txt file: DHTML NEWS TICKER FOR WEBDNA version 1.0 By Gary J. Krockover http://www.garykrockover.com/newsticker/index.htmlInformation: This code takes the basic styles for a news ticker that you would find on any javascript free scripts page and makes it customizable, easily. This is a perfect solution for web designer's that have clients wanting to add a news ticker to their site with the ability of the client to modify the contents of news items without having to call you each time.Features include: - Customizable size (width, height, margin, text padding), colors, font style, font colors, transition effects, delay time, text alignment. - Currently allows up to 6 news items, with rollover effects and clickable links, fully modifiable through a simple administrative backend done in WebDNA. - Actual files needed to run the ticker are a few very small databases and a simple [include] to place on each page that you wan't to show the ticker on.Instructions: Place all the files included in the .zip/.sit into the directory of the site that will be using the news ticker. Obviously, make sure that these files won't overwrite any existing files. You can also place these files in a sub-folder of the site, instructions for files needed to copy over are provided on the last screen of the News Ticker admin.Access the admin area by going to admin.html. A preview of the News Ticker as it currently is set will be shown at the top. The first page of the admin area is used to modify the look of the ticker itself, color, size, font, and style of ticker.The next screen of the admin area controls the News items themselves. From here you can select the title, the text of the news item, a link that the item should go to and a target for the link should you be using frames.As noted, a list of the files that will be needed to run the ticker on the site are provided in summary at the end of the administration session.Note: There is an option on the 2nd page of the admin area (where the news items and links are added) to append a cart tag to the link: ?cart=[cart]. This will prevent you from having to manually edit the links. You might need to explain to a client what that means exactly. I chose to do it this way instead of just placing it in the link itself for a couple of reasons. 1. It's too easy to forget to add it in something like this. 2. Clients will certainly forget to add it. 3. If a client sees ?cart=[cart] in the link already, they may tend to remove that, not knowing what it is, or forgetting to put it back when editing the link.Known Bugs: 1. Selecting to align the Text Area Text (news item) any ways other than left causes the news items to not show. Not sure why at this time, so your only option is to align it to the left.2. Transition effect Wipe causes a scripting error. Probably a copy/paste issue when copying the styles. I'll update it at a later time.Limitations: Ticker won't transition in older browsers not capable of DHTML scripts.Comments/Questions? Contact me at: Gary J. Krockover gary@garykrockover.comDisclaimer: No reference to the original authors is given for the DHTML code. The reason is two-fold. 1. It's hacked and pieced together from various sources. 2. It's further been stripped and had custom WebDNA tags added to it. Therefore, in my mind, it's original. Contact me if you feel otherwise.***** Feel free to modify these files as needed. One request though, if you add some neat functionality to it, let me know what you did and be prepared to send copies of the files to me! *****Check out my other WebDNA project: http://www.garykrockover.com/editor/content_editor.htmlEnjoy! GK------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Free Code Snippet: DHTL News Ticker for WebDNA (Gary Krockover 2003)
  2. Re: Free Code Snippet: DHTL News Ticker for WebDNA (andy mowrey 2003)
  3. Free Code Snippet: DHTL News Ticker for WebDNA (Gary Krockover 2003)
Hey all,Nothing better to do on a Sunday, so I put this little gem together. Demo and file downloads available at http://www.garykrockover.com/newsticker/ and later on tonight at the various WebDNA sites that host these things.>From my readme.txt file: DHTML NEWS TICKER FOR WEBDNA version 1.0 By Gary J. Krockover http://www.garykrockover.com/newsticker/index.htmlInformation: This code takes the basic styles for a news ticker that you would find on any javascript free scripts page and makes it customizable, easily. This is a perfect solution for web designer's that have clients wanting to add a news ticker to their site with the ability of the client to modify the contents of news items without having to call you each time.Features include: - Customizable size (width, height, margin, text padding), colors, font style, font colors, transition effects, delay time, text alignment. - Currently allows up to 6 news items, with rollover effects and clickable links, fully modifiable through a simple administrative backend done in WebDNA. - Actual files needed to run the ticker are a few very small databases and a simple [include] to place on each page that you wan't to show the ticker on.Instructions: Place all the files included in the .zip/.sit into the directory of the site that will be using the news ticker. Obviously, make sure that these files won't overwrite any existing files. You can also place these files in a sub-folder of the site, instructions for files needed to copy over are provided on the last screen of the News Ticker admin.Access the admin area by going to admin.html. A preview of the News Ticker as it currently is set will be shown at the top. The first page of the admin area is used to modify the look of the ticker itself, color, size, font, and style of ticker.The next screen of the admin area controls the News items themselves. From here you can select the title, the text of the news item, a link that the item should go to and a target for the link should you be using frames.As noted, a list of the files that will be needed to run the ticker on the site are provided in summary at the end of the administration session.Note: There is an option on the 2nd page of the admin area (where the news items and links are added) to append a cart tag to the link: ?cart=[cart]. This will prevent you from having to manually edit the links. You might need to explain to a client what that means exactly. I chose to do it this way instead of just placing it in the link itself for a couple of reasons. 1. It's too easy to forget to add it in something like this. 2. Clients will certainly forget to add it. 3. If a client sees ?cart=[cart] in the link already, they may tend to remove that, not knowing what it is, or forgetting to put it back when editing the link.Known Bugs: 1. Selecting to align the Text Area Text (news item) any ways other than left causes the news items to not show. Not sure why at this time, so your only option is to align it to the left.2. Transition effect Wipe causes a scripting error. Probably a copy/paste issue when copying the styles. I'll update it at a later time.Limitations: Ticker won't transition in older browsers not capable of DHTML scripts.Comments/Questions? Contact me at: Gary J. Krockover gary@garykrockover.comDisclaimer: No reference to the original authors is given for the DHTML code. The reason is two-fold. 1. It's hacked and pieced together from various sources. 2. It's further been stripped and had custom WebDNA tags added to it. Therefore, in my mind, it's original. Contact me if you feel otherwise.***** Feel free to modify these files as needed. One request though, if you add some neat functionality to it, let me know what you did and be prepared to send copies of the files to me! *****Check out my other WebDNA project: http://www.garykrockover.com/editor/content_editor.htmlEnjoy! GK------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Gary Krockover

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Text Variabels Not Passed To Include (2002) WebCat2_Mac RETURNs in .db (1997) For those of you not on the WebCatalog Beta... (1997) Folder Follies (1998) Merging databases (1997) Code ideas req: Matrix of users and options [code] (2003) OT: RAID Options (2004) shipping costs (1997) Merging databases (1997) Credit Card Number checking (1997) WebCat2 beta 11 - new prefs ... (1997) Sample Tea Room Search Error (1997) Free pack for the New UPS ratings and services tool (2000) [ShowIf] if the varieable exists (1998) can WC render sites out? (1997) upgrade? (1997) WebCat name recognition (1998) Blank orders after update to 5.1 (2004) Searching multiple Databases (1997) Sort Order on a page search (1997)