Post by bill on Apr 21, 2013 3:54:00 GMT -8
Hi,
Our V4 Board uses a simple header that links a graphic for the Board title -
<html>
<BR /><BR />
<p align="center">
<img src="http://i389./oo338/bill111/CHFlogo-1.gif" width-"698" height="73">
</p>
Will that still work or what is the equivalent way to do it in V5?
In the V4 footer we use two scripts, one to add a 'jump to last post in a thread' option -
<script type="text/javascript">
<!--
// Jumps to last post in thread if clicked in cell, clicking thread title goes to first post.
// By Todge.
if(document.location.href.match('board=')&&!document.location.href.match('action='))
{
var boards = document.getElementsByTagName('td');
for(b=0; b<boards.length; b++)
{
if(boards.width.match(/4(3|8)/)&&boards.className=='windowbg')
{
if(boards.firstChild.nodeName=='A')
{
boards.onclick=function(){document.location.href=this.firstChild.href;}
}
else
{
boards.onclick=boards[b+4].onclick;
}}}}
//-->
</script>
and one to resize graphics that are too big -
<script type="text/javascript">
/*
Modify image size to fit forum
By Todge
Please keep this header intact
Added by George 15/11/08
*/
var picWidth = '800'; //Maximum image width..
var picHeight = '700'; //Maximum image height..
var pics = document.images;
window.onload = imageSize;
function imageSize()
{
var p=pics.length-1;
while(p>-1)
{
if(pics
Our V4 Board uses a simple header that links a graphic for the Board title -
<html>
<BR /><BR />
<p align="center">
<img src="http://i389./oo338/bill111/CHFlogo-1.gif" width-"698" height="73">
</p>
Will that still work or what is the equivalent way to do it in V5?
In the V4 footer we use two scripts, one to add a 'jump to last post in a thread' option -
<script type="text/javascript">
<!--
// Jumps to last post in thread if clicked in cell, clicking thread title goes to first post.
// By Todge.
if(document.location.href.match('board=')&&!document.location.href.match('action='))
{
var boards = document.getElementsByTagName('td');
for(b=0; b<boards.length; b++)
{
if(boards.width.match(/4(3|8)/)&&boards.className=='windowbg')
{
if(boards.firstChild.nodeName=='A')
{
boards.onclick=function(){document.location.href=this.firstChild.href;}
}
else
{
boards.onclick=boards[b+4].onclick;
}}}}
//-->
</script>
and one to resize graphics that are too big -
<script type="text/javascript">
/*
Modify image size to fit forum
By Todge
Please keep this header intact
Added by George 15/11/08
*/
var picWidth = '800'; //Maximum image width..
var picHeight = '700'; //Maximum image height..
var pics = document.images;
window.onload = imageSize;
function imageSize()
{
var p=pics.length-1;
while(p>-1)
{
if(pics
.alt=='[image] ')
{
if(pics
.width>picWidth || pics
.height>picHeight)
{
var thisPicWidth = picWidth;
if(pics
.height/(pics
.width/picWidth)>picHeight)
{
thisPicWidth = pics
.width/(pics
.height/picHeight)
}
var newWidth = 100-parseInt(thisPicWidth/pics
.width*100);
var picLoaded = document.createElement('A');
picLoaded.setAttribute('href',pics
.src);
picLoaded.setAttribute('target','_blank');
picLoaded.innerHTML = '<font size="0">Image reduced by '+newWidth+'%, click to view full size.</font><br><img src="'+pics
.src+'" width="'+thisPicWidth+'" border="0">';
pics
.parentNode.replaceChild(picLoaded,pics
);
}}
p--;
}}
</script>
Again, will that still work or what is the equivalent way to do it in V5?
Thanks in advance,
Bill