⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tv.html

📁 xml good example for tv guide.
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>TV Listings</title>
<!--XSLTv is Copyright 2008 Eric Lofgren. See http://www.ericandchar.com/xsltvgrid/ -->
<link rel="stylesheet" type="text/css" href="stylesheets/yahooold.tv.css" title="YahooOld" />
<link rel="stylesheet" type="text/css" href="stylesheets/yahoonew.tv.css" title="YahooNew" />
<link rel="alternate stylesheet" type="text/css" href="stylesheets/tvguideold.tv.css" title="TVGuideOld" />
<link rel="alternate stylesheet" type="text/css" href="stylesheets/tvguideprint.tv.css" title="TVGuidePrint" />
<link rel="alternate stylesheet" type="text/css" href="stylesheets/tvguidenew.tv.css" title="TVGuideNew" />
<link rel="alternate stylesheet" type="text/css" href="stylesheets/excite.tv.css" title="Excite" />
<link rel="alternate stylesheet" type="text/css" href="stylesheets/aol.tv.css" title="AOL" />
<link rel="alternate stylesheet" type="text/css" href="stylesheets/meevee.tv.css" title="MeeVee" />
<link rel="alternate stylesheet" type="text/css" href="stylesheets/newspaper.tv.css" title="Newspaper" />
<link rel="alternate stylesheet" type="text/css" href="stylesheets/msn.tv.css" title="MSN" />
<link rel="alternate stylesheet" type="text/css" href="stylesheets/titantv.tv.css" title="TitanTV" />
<link rel="alternate stylesheet" type="text/css" href="stylesheets/eric.css" title="Eric" />
<style id="topstyle" type="text/css"></style> <!--Empty style is added to for dynamic table sizing-->
<!-- HINTBOX -->
<script type="text/javascript">
/***********************************************
* Show Hint script- copyright Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
		
var horizontal_offset="9px" //horizontal offset of hint box from anchor link

/////No further editting needed

var vertical_offset="0" //horizontal offset of hint box from anchor link. No need to change.
var ie=document.all
var ns6=document.getElementById&&!document.all

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=(whichedge=="rightedge")? parseInt(horizontal_offset)*-1 : parseInt(vertical_offset)*-1
if (whichedge=="rightedge"){
var windowedge=ie && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-30 : window.pageXOffset+window.innerWidth-40
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth+parseInt(horizontal_offset)
}
else{
var windowedge=ie && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
}
return edgeoffset
}

function showhint(menucontents, obj, e){
if ((ie||ns6) && document.getElementById("hintbox")){
dropmenuobj=document.getElementById("hintbox")
dropmenuobj.innerHTML=menucontents
dropmenuobj.style.left=dropmenuobj.style.top=-500
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
dropmenuobj.style.visibility="visible"
obj.onmouseout=hidetip
}
}

function hidetip(e){
dropmenuobj.style.visibility="hidden"
dropmenuobj.style.left="-500px"
}

function createhintbox(){
var divblock=document.createElement("div")
divblock.setAttribute("id", "hintbox")
document.body.appendChild(divblock)
}

if (window.addEventListener)
window.addEventListener("load", createhintbox, false)
else if (window.attachEvent)
window.attachEvent("onload", createhintbox)
else if (document.getElementById)
window.onload=createhintbox

</script>
<!-- endHINTBOX -->
<script type="text/javascript">
/*Check if SSIs are working. If they are, use the server date and time intead of the client.*/
/*This uses an external file titled 'ssitest' which contains the text 'ssiworking' */
if('<!--#include virtual="ssitest" -->'=='ssiworking'){
var currenttime = '<!--#config timefmt="%B %d, %Y %H:%M:%S" --><!--#echo var="DATE_LOCAL" -->';
}else{
var currenttime = new Date();
}
var xslrequest;
var xmlrequest;
var processor;
var template;
var sortstring;
var xmlfileneeded='';
var xmlfileloaded;
</script>
<script type='text/javascript' src='tv.js'></script>
<script type="text/javascript">
var cookie = readCookie("xsltvhours"); var hours = cookie ? Number(cookie) : 4;
cookie = readCookie("xsltvtablewidth"); var tablewidth = cookie ? Number(cookie) : (200+(hours * 150));
cookie = readCookie("xsltvautosize"); var autosize = cookie ? cookie : true;
cookie = readCookie("xsltvfixgaps"); var fixgaps = cookie ? cookie : false;
cookie = readCookie("xsltvchannelpopups"); var channelpopups = cookie ? cookie : true;
cookie = readCookie("xsltvdescriptionpopups"); var descriptionpopups = cookie ? cookie : true;
cookie = readCookie("xsltvpopupdelay"); var popupdelay = cookie ? Number(cookie) : 0;
cookie = readCookie("xsltvpopuptimes"); var popuptimes = cookie ? cookie : true;
cookie = readCookie("xsltvpopuprating"); var popuprating = cookie ? cookie : true;
cookie = readCookie("xsltvpopupsubtitle"); var popupsubtitle = cookie ? cookie : true;
cookie = readCookie("xsltvpopupdescription"); var popupdescription = cookie ? cookie : true;
cookie = readCookie("xsltvpopupdate"); var popupdate = cookie ? cookie : true;
cookie = readCookie("xsltvpopupcategories"); var popupcategories = cookie ? cookie : true;
cookie = readCookie("xsltvpopupstarrating"); var popupstarrating = cookie ? cookie : true;
cookie = readCookie("xsltvabsoluteicons"); var absoluteicons = cookie ? cookie : false;
cookie = readCookie("xsltvoffsetminutes"); var offsetminutes = cookie ? Number(cookie) : 60;
cookie = readCookie("xsltvrefreshonthe"); var refreshonthe = cookie ? Number(cookie) : -1;
cookie = readCookie("xsltvgrabber"); var grabber = cookie ? cookie : "tv_grab_na_dd";
cookie = readCookie("xsltvdayfirst"); var dayfirst = cookie ? cookie : false;
cookie = readCookie("xsltvcategorycolors"); var categorycolors = cookie ? cookie : true;
cookie = readCookie("xsltvdailyfiles"); var dailyfiles = cookie ? cookie : false;
cookie = readCookie("xsltvtwelvehour"); var twelvehour = cookie ? cookie : false;
cookie = readCookie("xsltvloadonclick"); var loadonclick = cookie ? cookie : 'IMDB';
cookie = readCookie("xsltvlanguage"); var language = cookie ? cookie : 'english';
cookie = readCookie("xsltvhighlightclickable"); var highlightclickable = cookie ? cookie : false;
cookie = readCookie("xsltvhighlightmovies"); var highlightmovies = cookie ? Number(cookie) : 10;
cookie = readCookie("xsltvhighlightnew"); var highlightnew = cookie ? cookie : false;
cookie = readCookie("xsltvprintdates"); var printdates = cookie ? cookie : true;
cookie = readCookie("xsltvtimebarfrequency"); var timebarfrequency = cookie ? cookie : -1;
cookie = readCookie("xsltvshowclock"); var showclock = cookie ? cookie : true;
cookie = readCookie("xsltvshowbarclock"); var showbarclock = cookie ? cookie : false;

var languagefile = 'lang/'+language+'.js'
document.write('<script type="text/javascript" src="'+languagefile+'"><\/script>') 

var myDate=new Date(currenttime);
myDate.setMinutes(myDate.getMinutes() + (60 - offsetminutes));

if(dailyfiles.toString()=="true"){
	fileDate=myDate.getDate();
	if (fileDate < 10) {fileDate = "0"+fileDate;}
	fileMonth=myDate.getMonth() + 1;
	if (fileMonth < 10) {fileMonth = "0"+fileMonth;}
	xmlfileneeded=xmlfileneeded.concat(myDate.getFullYear(),fileMonth,fileDate,'.xml');
}else{
	xmlfileneeded='tv.xml'
}

if(grabber=="tv_grab_fr"){
	sortstring="substring-after(substring-before(./@id,'.'),'C')";
}else if(grabber=="tv_grab_es"){
	sortstring="display-name[2]";
}else if(grabber=="tv_grab_huro"){
	sortstring="substring(./@id,1,3)";
}else{
	sortstring="display-name[3]";
}


if (document.implementation && document.implementation.createDocument) { //Netscape only
	document.getElementById('topstyle').sheet.insertRule("#listings { width: "+ tablewidth +"px }", document.getElementById('topstyle').sheet.cssRules.length )

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -