Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<?xml version="1.0" encoding="utf-8"?>
<install version="1.5" type="template">
<name>Asian</name>
<version>1.0</version>
<creationDate>19 February</creationDate>
<author>phuonghtk</author>
<authorEmail>phuonghtk@gmail.com</authorEmail>
<authorUrl></authorUrl>
<copyright></copyright>
<license></license>
<?php
if($this->countModules('left') == 0) $right = "600";
?>
<?php if($this->countModules('left')) : ?>
<jdoc:include type="modules" name="left" style="XHTML" />
<?php endif; ?>
<ul class="menu">
<li class="first">
<a href="http://www.vnwebtalk.com">Home</a>
</li>
<li class="active">
<a href="http://www.vnwebtalk.com">About Us</a>
</li>
<li>
<a href="http://www.vnwebtalk.com">Services</a>
<ul>
/*Menu*/
.menu{
height: 30px;
line-height: 30px;
padding-left: 10px;
}
.menu li, .menu a{
float: left;
display: inline; /*Avoid IE float bug*/
}
$(document).ready(function() {
$('.menu li').hover(function(){
$('ul',$(this)).stop(1,1).slideDown();
},function(){
$('ul',$(this)).stop(1,1).slideUp();
})
});
/*Some style goodness*/
.menu, .menu ul{
background-color: #eee;
-moz-border-radius: 5px; /* FF1+ */
-webkit-border-radius: 5px; /* Saf3+, Chrome */
-khtml-border-radius: 5px; /* Konqueror */
border-radius: 5px; /* Standard. IE9 */
border:1px solid #ccc;
}
.menu li{
function get_title($url)
{
$dom = new DOMDocument();
if($dom->loadHTMLFile($url)) {
$list = @$dom->getElementsByTagName("title");
if ($list->length > 0) {
return $list->item(0)->textContent;
}
preg_match("/(?<=\<title\>)(.+?)(?=\<\/title\>)/s", $web_data, $m)