SRCDS Steam group


[SOLVED] Banner HTML general. Link var image.
#1
Hi!!
I want design one html code what the link of the image of the banner of my server was one variable, so i can use same code for all the servers.

It script is in the site:

"http://www.sitescriptfree.com/banner.html"

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Welcome to SpecialAttack</title>
<style type="text/css">
html, body {
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
img#bg {
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
}
#content {
position:relative;
z-index:1;
margin:0 auto;
}
</style>
</head>

<body>
<img src="http://website/motd.jpg"/>
</body>
</html>

I have it script in one free site, but I want what the tag <img src> was one variable!!!!

So I call my script:

"http://www.sitescriptfree.com/banner.html?var=http://website/motd.jpg"

and my script now is using the link var image:

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Welcome to SpecialAttack</title>
<style type="text/css">
html, body {
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
img#bg {
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
}
#content {
position:relative;
z-index:1;
margin:0 auto;
}
</style>
</head>

<body>
<img src=%%var%%>
</body>
</html>

How Can I do it script? Somebody can help me in HTML CODE?¿

Thanks!
Reply
#2
What do you mean doing it script?
Reply
#3
It html code is for change the banner of my server.
But I want what the tag <img src> was one link var of one image, so i can use same html code for all my servers.

It code html only is for one image:

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Welcome to SpecialAttack</title>
<style type="text/css">
html, body {
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
img#bg {
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
}
#content {
position:relative;
z-index:1;
margin:0 auto;
}
</style>
</head>

<body>
<img src="http://website/pic1.jpg"/>
</body>
</html>

But and If I have more servers and more images? The solution is use one var for link image!

"http://www.sitescriptfree.com/banner.html?var=http://website/pic2.jpg"
"http://www.sitescriptfree.com/banner.html?var=http://website/pic3.jpg"
"http://www.sitescriptfree.com/banner.html?var=http://website/pic4.jpg"
"http://www.sitescriptfree.com/banner.html?var=http://website/pic5.jpg"
"http://www.sitescriptfree.com/banner.html?var=http://website/pic6.jpg"
"http://www.sitescriptfree.com/banner.html?var=http://website/pic7.jpg"

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Welcome to SpecialAttack</title>
<style type="text/css">
html, body {
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
img#bg {
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
}
#content {
position:relative;
z-index:1;
margin:0 auto;
}
</style>
</head>

<body>
<img src=%%var%%/>
</body>
</html>

But i don't know HTML code!!!
For it reason I want HELP!

Thanks!
Reply
#4
Ohh you want an image in your MOTD?
Reply
#5
realchamp Wrote:Ohh you want an image in your MOTD?

Yes!!!!

Motd and host.

But I have 20 servers and want 20 different images!!! I want not create one file html for every image. I want use one var link image.

Thank you!
Reply
#6
You will such a code here in each servers MOTD:
Code:
<frameset rows="100%,*" frameborder="NO" border="0" framespacing="0">
<frame name="main_frame" src="http://yourhompage/">
</frameset>

(Find that part).

Then just upload the 20 pictures to your homepage. And set this to that image.

I'm not entirely sure about what you mean with the other one. Or the other method.
Reply
#7
realchamp Wrote:You will such a code here in each servers MOTD:
Code:
<frameset rows="100%,*" frameborder="NO" border="0" framespacing="0">
<frame name="main_frame" src="http://yourhompage/">
</frameset>

(Find that part).

Then just upload the 20 pictures to your homepage. And set this to that image.

I'm not entirely sure about what you mean with the other one. Or the other method.

In the file host.txt I cannot put code html, only one link html page.

Thanks!
Reply
#8
Sorry I still don't understand.. Sad
Reply
#9
realchamp Wrote:Sorry I still don't understand.. Sad

My english is bad. I'm sorry.

Can you help me in the other new post?

Thanks!
Reply
#10
Yeah sure.

Btw. what's your mean language?
Reply
#11
Greek
Reply
#12
I barely speak that Wink

Code:
Έχω λίγες λέξεις.

Any other languages?
Reply
#13
You are going to have to create a separate motd for each server, its wickedly complicated to have html use variables with the server. Realchamp, basically he wants one motd that can tell which server its on, and choose the right motd from there, so he doesn't have to edit each motd separatly
[Image: b_350x20_C002748-004880-FFFFFF-000000.png]
Reply
#14
pengy Wrote:Realchamp, basically he wants one motd that can tell which server its on, and choose the right motd from there, so he doesn't have to edit each motd separatly

Ohh ofcause. Smile

I don't know if that is possible. It should be.

Hang on, I will try something. And see if I can get it to work.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)