You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
964 B
37 lines
964 B
<div id="custabbar-div">
|
|
<p>
|
|
{foreach from=$group_list item=group key=group_key name="bar_group"}
|
|
{if $group_key eq $current}
|
|
<span class="custab-front" id="{$group_key}-tab">{$group.text}</span>
|
|
{else}
|
|
<span class="custab-back" id="{$group_key}-tab" onclick="javascript:location.href='{$group.url}';">{$group.text}</span>
|
|
{/if}
|
|
{/foreach}
|
|
</p>
|
|
</div>
|
|
|
|
<script language="javascript">
|
|
/**
|
|
* 标签上鼠标移动事件的处理函数
|
|
* @return
|
|
*/
|
|
document.getElementById("custabbar-div").onmouseover = function(e)
|
|
{
|
|
var obj = Utils.srcElement(e);
|
|
|
|
if (obj.className == "custab-back")
|
|
{
|
|
obj.className = "custab-hover";
|
|
}
|
|
}
|
|
|
|
document.getElementById("custabbar-div").onmouseout = function(e)
|
|
{
|
|
var obj = Utils.srcElement(e);
|
|
|
|
if (obj.className == "custab-hover")
|
|
{
|
|
obj.className = "custab-back";
|
|
}
|
|
}
|
|
</script>
|