Symon
|
html to motd.txt (steam fans only)Anyone what to try and covet this code to work as a motd.txt ?
works ok on as a webpage (imgs not applied as of yet)
http://assiejack.teamhost.co.uk/motd.html
But not as a motd.txt
|
admin (no pm's please)
|
probably as it has head and body tags. Not good for something that is working as a snippet.
|
Viper
|
| admin (no pm's please) wrote: | | probably as it has head and body tags. Not good for something that is working as a snippet. |
Aye. Take this line out aswell:
| Code: | | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|
Nick(NR)
|
This should do it, let me know, may be worth altering the links colors:
|
Symon
|
Doesnt work nick,
If i just have the images it shows them in all 4 corners, however as soon as i add the text it crashes and you see just the standard light brown screen.
So it seems to be a .css problem
|
Nick(NR)
|
I got a sneaky feeling it's this playing silly buggers:
img { behavior: url("pngfix.htc"); }
|
Symon
|
| Nick(NR) wrote: | I got a sneaky feeling it's this playing silly buggers:
img { behavior: url("pngfix.htc"); } |
What i done was tpo grab an orginal motd.txt , and just add 4 images to the corners, this worked.
However as soon as i try and add anything in the middle that is when it doesnt work.
and that file you just pointed to reads as follows, (but i took that out as well)
www.assiejack.teamhost.co.uk/motd.html
using
www.assiejack.teamhost.co.uk/motd.txt
pngfix.htc
| Code: | <public:component>
<public:attach event="onpropertychange" onevent="propertyChanged()" />
<script>
var supported = /MSIE (5\.5)|[6789]/.test(navigator.userAgent) && navigator.platform == "Win32";
var realSrc;
var transSrc = "trans.gif";
if (supported) fixImage();
function propertyChanged()
{
if (!supported) return;
var pName = event.propertyName;
if (pName != "src") return;
// if not set to transparent
if ( ! new RegExp(transSrc).test(src))
fixImage();
};
function fixImage()
{
// get src
var src = element.src;
// check for real change
if (src == realSrc)
{
element.src = transSrc;
return;
}
if ( ! new RegExp(transSrc).test(src))
{
// backup old src
realSrc = src;
}
// test for png
if ( /\.png$/.test( realSrc.toLowerCase() ) )
{
// set transparent image
element.src = transSrc;
// set filter
element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
}
else
{
// remove filter
element.runtimeStyle.filter = "";
}
}
</script>
</public:component>
|
|
Nick(NR)
|
it shouldn't need a png fix, it's not an old browser it's a game that shows png sprays, so it wasn't needed anyways, but all the same will have to finish getting dod and have a bash on your server.
|
Viper
|
| Viper wrote: | Take this line out aswell:
| Code: | | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|
|
Symon
|
| Viper wrote: | | Viper wrote: | Take this line out aswell:
| Code: | | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|
|
Funny thing is i left that in and it works for images on 4 corners ?
|
Symon
|
I cheated in the end took a screen shot of how i wanted it and just place a single image which works.
|
Nick(NR)
|
Why not use a borderless table with jpgs?
If you wanted text over the pics, then some css to set the pics as bg's would've worked
|
|
|