Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

html code work on custom page but not in panel.

Asked Modified Viewed 1,694 times
B
bonnis
B
bonnis 10
  • Member, joined since
  • Contributed 100 posts on the community forums.
  • Started 29 threads in the forums
  • Started this discussions
asked
Member

Hey guys. i want this code that i wrote:
<html>
<head>
<a href="steam://connect/188.126.64.25:27026" class="img">
<style type="text/css">
.img { width: 350px; height: 16px; background: url('http://bananparty.nu/images/j1.png'); }
.img:hover { width: 300px; height: 16px; background: url('http://bananparty.nu/images/j2.png'); }
</style> 
</head>
<div class="img">
</div>
</html>

<html>
<head>
<a href="steam://connect/188.126.64.25:27066" class="img2">
<style type="text/css">
.img2 { width: 350px; height: 16px; background: url('http://bananparty.nu/images/m1.png'); }
.img2:hover { width: 350px; height: 16px; background: url('http://bananparty.nu/images/m2.png'); }
</style> 
</head>
<div class="img2">
</div>
</html>

<html>
<head>
<a href="ts3server://ts3.bananparty.se?port=10060" class="img3">
<style type="text/css">
.img3 { width: 350px; height: 16px; background: url('http://bananparty.nu/images/t1.png'); }
.img3:hover { width: 350px; height: 16px; background: url('http://bananparty.nu/images/t2.png'); }
</style>
</head>
<div class="img3">
</div>
</html>


im not very very good to code, so dont judge.
so i want this code to work in "Adminatration -> Settings -> Main settings under the "introduction for homepage". "

it work work, ill only see alot of text and ****.
and its dont work in panel.

but that code works fine in costum pages.

i would like to have a hand on this one :)

//bonnis
0 replies

1 post

C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin


ob_start();
<style type="text/css">
.img { width: 350px; height: 16px; background: url('http://bananparty.nu/images/j1.png'); }
.img:hover { width: 300px; height: 16px; background: url('http://bananparty.nu/images/j2.png'); }
.img2 { width: 350px; height: 16px; background: url('http://bananparty.nu/images/m1.png'); }
.img2:hover { width: 350px; height: 16px; background: url('http://bananparty.nu/images/m2.png'); }
</style>

<div class="img">
<div class="img2">
$my_content = ob_get_contents();
ob_end_clean();
echo $my_content;
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

2 participants

C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
B
B
bonnis 10
  • Member, joined since
  • Contributed 100 posts on the community forums.
  • Started 29 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet