
Saturday, September 11, 2004
Opening links in a new window
CaRP gives you two ways to make links open in a new window, one of which lets you control the size of the window. The first method, which doesn't allow you to control the window size is to add the following code to the page in which you are displaying the feed:
The second, which allows you to control the window size is a little trickier. First, you need some JavaScript to handle the creation of a new window with a specified size (put this in the <head> section of your webpage if possible):
Then, use the following configuration settings to get CaRP to trigger the JavaScript when someone clicks a link (note that "image" and "date" in the first line below require CaRP Koi or CaRP Evolution, but won't hurt anything when used with CaRP GPL):
(1) comments
CarpConf('linktarget',1);The second, which allows you to control the window size is a little trickier. First, you need some JavaScript to handle the creation of a new window with a specified size (put this in the <head> section of your webpage if possible):
<script type="text/javascript">
function OpenNewsWindow(url) {
theWindow = window.open(url, "News", "directories=no, menubar=no, scrollbars=yes, status=no, toolbar=no, resizable=yes, width=600, height=400");
if (window.focus) theWindow.focus();
}
</script>Then, use the following configuration settings to get CaRP to trigger the JavaScript when someone clicks a link (note that "image" and "date" in the first line below require CaRP Koi or CaRP Evolution, but won't hurt anything when used with CaRP GPL):
CarpConf('iorder','image,url,title,author,date,desc');
CarpConf('biurl','<a href="#" onClick="OpenNewsWindow(\'');
CarpConf('aiurl','\'); return false;">');
CarpConf('ailink','</a><br />');(1) comments
Wednesday, September 01, 2004
Welcome to the CaRP Help Weblog
Welcome to the CaRP Help Weblog. From time to time, I'll post articles here outlining useful tips and tricks for making the most of CaRP. Stay on top of new articles easily by subscribing to the RSS feed using the orange XML button near the top of the page.
(1) comments
(1) comments