elxis sites
search engines friendly
Boost your site ranking with Elxis CMS. Elxis is optimized for search engines, it automatically enriches your site meta data, creates internal links, and does many other actions automatically in order for your site to rank high.
download elxis
elxis 2009.2 electra - 10.41mb
Home arrow Guides arrow General guides arrow How to add smart text banners
english greek

How to add smart text banners

Tuesday, 13 May 2008

Elxis has an integrated banner management system that allows you to add banners of any type. Usually we add image banners but in this guide we will show you how you can insert smart text banners using javascript that counts clicks and process clicked URL in any browser, javascript enabled or not.

Login to the Elxis administration and go to the banners manager. Click "New" to add a new banner. Write a name for the banner, select ANY image (it wont be really used) and we are ready to place our custom banner code in the textarea field bellow. I will write a sample custom banner code bellow and I will explain it right afterwards.

<div align="justify">
<a href="http://www.google.com" title="visit google.com" target="_blank"
onclick="window.open('http://www.mysite.com/banners/5.html'); return false;">
<strong>Google</strong>
</a><br />
Google is the world largest search engine, blah blah...
</div>

At first we added a normal text link to the target URL, which for this sample sake is google.com, in order for the non-javascript enabled browsers and search engines to be able to follow the link. Secondary, we added an onclick event which can be executed by the usual javascript enabled browsers. When this link is clicked it will open a SEO PRO URL in our site that will be used by Elxis to count the click. Afterwards Elxis will redirect you to the banner URL (the one you have set in banners parameters). This SEO PRO URL is formed like this:

http://www.your_site_here.com/banners/banner_id_here.html

At the end of the link we also added a return false; in order javascript enabled browsers not to follow the standard (direct) link but the javascript enabled one. After the link we added a short description text. This text is good for both visitors and search engines.

< Previous Next >