Menu
I have some problems with putting something in the link. I’m using on site such simple include construction:
[code=php]<?
switch ($_GET[‘go’])
{
case ‘2’:
include(“site2.htm”);
break;
case ‘3’:
include(“site3.htm”);
break;
case ‘1’:
default:
include(“site1.htm”);
}
?>
Simple link looks like this: <a href=”index.php?go=1″>site1</a>
I wonder is the a way to could make it as onclick event? Something like: <a onclick=”…”><img src=”…” /></a>?
I’m asking because I have some onclick JS function in links and I need add there also those include links but I’m not sure how it should look.