
dlo_itools
Staff

Aug 28, 2002, 6:10 PM
Post #2 of 2
(1979 views)
Shortcut
|
>syndicate output to link to a frameset instead directly to the article The changes here involve modifying the javascript file syndicate.js found in cgi-bin/artman/templates/syndicate/ To send a syndicate link to a frameset, you need to have a utility cgi script that will frame a given webpage address. Visit our resources page for links to script collections http://www.interactivetools.com/resources/ Once you find/create such a script, you need to modify the syndicate.js line that creates the document link: old: document.write('<a href="' + syndicate.article_url[syndicate.index] + '" target="_blank">'); new: document.write('<a href=/cgi-bin/frameit.cgi?"' + syndicate.article_url[syndicate.index] + '">'); There may also be javascript solutions too based on a similar concept. >change the syndicate output to pixel font sizes and not the size 1,2,3,4 One way to do this is to add some style tag output to the syndicate content, and then use styles instead of font attributes. old: document.write('<font color="' + syndicate.title_fontcolor + '" face="' + syndicate.title_fontface + '" size="' + syndicate.title_fontsize + '"'); new: document.write('<style="syndicatetitle"'); and then add some style definitions earlier before the loop begins: document.write('<style>'); document.write('syndicatetitle { font-size:20px; font-color:... } document.write('</style'>); If other readers have found a more elegant solution, let us know! /Dave Lo
|