How to easily set up visited links
Wednesday, 25 November 2009 16:56

At Joomlashack University we have a main page that lists all the tutorials that are available. We have had several student requests that it would be useful to easily see what lessons they had visited.

Short of some custom programming to achieve this, we implemented a simple visual icon with CSS that would show next to any link that had been clicked on. It uses the a:visited property.

Here is an example. Click on the link and you'll see the icon appear.

The code looks like this:

<style type="text/css">
<!--
.visitedlinks a:visited {
background-image: url(http://www.joomlashack.com/university/templates/ js_joomlashacku/images/tick.png);
background-position: right center;
background-repeat: no-repeat;
padding-right:20px;
}
-->
</style>
<div class="visitedlinks">
<a href="#">this is a link
</a>
</div>

Feel free to use it on your own sites!


blog comments powered by Disqus
 

Joomlashack University!

If you want Joomla training delivered to the comfort of your own home, then you need to join Joomlashack University - an affordable online Joomla training course taught by the world's leading experts in Joomla education.

Get Joomla Tips by RSS or Email

 

Joomla 1.6 Book

Get the NEW Joomla 1.6 Book

The new 3rd edition of the best selling Joomla 1.6 book is now available.

New and updated, its everything you need to know about Joomla 1.6!

Get it now from Amazon!

jenbookJoomla! Start to Finish Book

When you're ready to take your Joomla sites to the next level, try Joomla! Start to Finish: How to Plan, Maintain and Execute Your Website.

 

 

Teaching Sells

Classic Blog Posts