3 <title>TV Guide
</title>
4 <style type=
"text/css">
13 font-family: verdana
, helv
, arial
, sans-serif
;
16 vertical-align: middle
;
25 background-color: #eef7ee;
29 background-color: #ffdddd;
32 vertical-align: middle
;
35 border-right-style: none
;
36 border-top-style: none
;
37 border-bottom-style: none
;
55 vertical-align: middle
;
64 div
.programme-region
{
76 <script type=
"text/javascript" language=
"javascript">
79 function scrollProgrammeRegion()
81 document
.getElementById( "time-bar" ).scrollLeft
= document
.getElementById( "programme-region" ).scrollLeft
;
86 if( document
.getElementById
)
88 el
= document
.getElementById( id
);
91 if( el
.style
.overflow
!= 'auto' )
93 el
.title
= el
.innerHTML
96 if( el
.className
== 'progdiv' )
98 el
.style
.backgroundColor
= '#ccffcc';
102 el
.style
.backgroundColor
= '#ffbbbb';
110 if( document
.getElementById
)
112 el
= document
.getElementById( id
);
116 el
.style
.backgroundColor
= '';
123 if( document
.getElementById
)
125 el
= document
.getElementById( id
);
128 if( el
.style
.overflow
== 'auto' )
134 makeRequest( 'prog-' + id
+ '.inc', id
);
141 function doSelect( id
, text
)
143 if( document
.prevSelected
)
145 doUnSelect( document
.prevSelected
);
148 if( document
.getElementById
)
150 el
= document
.getElementById( id
);
153 document
.prevSelected
= el
;
155 if( w
.substring( 0, w
.length
- 2 ) < 300 )
157 el
.oldWidth
= el
.style
.width
;
158 el
.style
.width
= 300;
160 el
.style
.height
= 150;
161 el
.style
.overflow
= 'auto';
162 el
.oldInnerHTML
= el
.innerHTML
170 function doUnSelect( el
)
172 document
.prevSelected
= 0;
174 el
.style
.overflow
= 'hidden';
175 el
.style
.height
= $height
;
178 el
.style
.width
= el
.oldWidth
;
180 el
.innerHTML
= el
.oldInnerHTML
;
184 function makeRequest( url
, arg
)
188 if( window
.XMLHttpRequest
) // Mozilla, Safari etc.
190 httpRequest
= new XMLHttpRequest();
191 //if (httpRequest.overrideMimeType) {
192 // httpRequest.overrideMimeType('text/xml');
193 // // See note below about this line
196 else if( window
.ActiveXObject
) // IE
200 httpRequest
= new ActiveXObject( "Msxml2.XMLHTTP" );
206 httpRequest
= new ActiveXObject( "Microsoft.XMLHTTP" );
219 httpRequest
.onreadystatechange = function()
221 receiveAnswer( httpRequest
, arg
);
224 httpRequest
.open('GET', url
, true);
225 httpRequest
.send('');
228 function receiveAnswer( httpRequest
, id
)
230 if( httpRequest
.readyState
== 4 )
232 if( httpRequest
.status
== 200 )
234 doSelect( id
, httpRequest
.responseText
);
244 <div class=
"time-bar" id=
"time-bar">
248 <div class=
"channel-bar" id=
"channel-bar">
252 <div class=
"programme-region" id=
"programme-region" onScroll=
"scrollProgrammeRegion()">