How to prevent jQuery conflict error in joomla


How to add css for even odd li elements

This is the code by which i apply alternate css to my li elements –

.stream li { }
.stream li:nth-child(odd) { background:#CCCCCC; }
.stream linth-child(even) { background:#00FFCC; }

Posted in CSS

How to create backlink using JavaScript or PHP

Backlinks for pages can be implemented either by using php or javascript. Code block for these two is as follows –

<a href=”<?php echo $_SERVER[‘HTTP_REFERER’] ?>”>Back Via PHP</a>

<?php echo “<br />”.”—————-“.”<br />”; ?>

<a href=”javascript:history.go(-1);”>Back Via JavaScript</a>

<?php echo “<br />”.”—————-“.”<br />”; ?>

<a href=”javascript:history.back()”>Another JS Back Button</a>