HTML Page (ForuMania) help
3 posters
Page 1 of 1
HTML Page (ForuMania) help
For the past 10 minutes, I've been scripting my own HTML page, and so far so good- I didn't need any tutorials or anything. Now, I need a little assistance. It's hard to explain what I need, but I want to have an image positioned on the page to where if you scroll, the image scrolls with you as well. So basically, it's just like having a layer over the page where it's just the image positioned in the corner. Do you know what I'm getting it?
Okay, to be more precise, http://www.forumansion.com/Mania-v20-h9.htm
You can view the source on that page.
I don't want the image div aligned or positioned, I just want it to floats along whilst you scroll the page (so if you scroll the page, the positioned image will scroll down along with you.) Thanks.
Okay, to be more precise, http://www.forumansion.com/Mania-v20-h9.htm
You can view the source on that page.
I don't want the image div aligned or positioned, I just want it to floats along whilst you scroll the page (so if you scroll the page, the positioned image will scroll down along with you.) Thanks.
Rok- Energetic
- Posts : 6823
Reputation : 234
Language : idk
Re: HTML Page (ForuMania) help
Not possible without javascript.
Only HTML won't be able to do it.
Only HTML won't be able to do it.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: HTML Page (ForuMania) help
Well, I don't know if it takes JS for something that simple, but still... do you know what the code for that would be?
Rok- Energetic
- Posts : 6823
Reputation : 234
Language : idk
Re: HTML Page (ForuMania) help
HTML/CSS can't make any dynamic content.
You need to use JS.
I don't know how exactly it can be done.
You need to use JS.
I don't know how exactly it can be done.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: HTML Page (ForuMania) help
Well, a graphic designer (TanMan) on my forum did it with HTML in just a post.
http://www.forumansion.com/archive-f84/best-html-script-contest-t1023.htm
^ Scroll down to the bottom of the post and you'll see the code.
http://www.forumansion.com/archive-f84/best-html-script-contest-t1023.htm
^ Scroll down to the bottom of the post and you'll see the code.
Rok- Energetic
- Posts : 6823
Reputation : 234
Language : idk
Re: HTML Page (ForuMania) help
Oh! Thats not any dynamic content
The container has a fixed position, thats it.
You can do it with CSS positioning.
Tell me what image you want on your page to scroll and where you want to put it.
I'll give you the code
The container has a fixed position, thats it.
You can do it with CSS positioning.
Tell me what image you want on your page to scroll and where you want to put it.
I'll give you the code
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: HTML Page (ForuMania) help
Haha, told ya.
I was going to have a sidebar navigation bar on the right, center side of the HTML page.
I was going to have a sidebar navigation bar on the right, center side of the HTML page.
Rok- Energetic
- Posts : 6823
Reputation : 234
Language : idk
Re: HTML Page (ForuMania) help
Navigation bar? You mean linked images?
Please give me urls of images.
Please give me urls of images.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: HTML Page (ForuMania) help
I haven't made them yet. I can place them in the code once you script it. I'll need 5 images to scroll.
Rok- Energetic
- Posts : 6823
Reputation : 234
Language : idk
Re: HTML Page (ForuMania) help
Ok, I am working on it.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: HTML Page (ForuMania) help
Alright thanks, man. Can't wait to see it.
Rok- Energetic
- Posts : 6823
Reputation : 234
Language : idk
Re: HTML Page (ForuMania) help
So, finally I've made it.
Here is the code...
Here is the Preview
Here is the code...
- Code:
<div style="position:fixed; top:0; right:0; margin-top:100px; z-index:200; border:1px solid #999999; padding:5px 0 5px 5px;">
<a href="http://discussionz.ace.st/"><img src="http://2img.net/i/fa/fdf/voix.png"></a><br>
<a href="http://discussionz.ace.st/"><img src="http://2img.net/i/fa/fdf/voix.png"></a><br>
<a href="http://discussionz.ace.st/"><img src="http://2img.net/i/fa/fdf/voix.png"></a><br>
<a href="http://discussionz.ace.st/"><img src="http://2img.net/i/fa/fdf/voix.png"></a><br>
<a href="http://discussionz.ace.st/"><img src="http://2img.net/i/fa/fdf/voix.png">
</div>
Here is the Preview
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: HTML Page (ForuMania) help
Oh god, thanks so much! It's brilliant, and I'll remove the border.
Thanks!
Thanks!
Rok- Energetic
- Posts : 6823
Reputation : 234
Language : idk
Re: HTML Page (ForuMania) help
No problem mate.
Glad to help you..
I advice you not to make much changes in positions and margin-padding etc.
It may mess up the look.
Glad to help you..
I advice you not to make much changes in positions and margin-padding etc.
It may mess up the look.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: HTML Page (ForuMania) help
Hm, I put the code in the HTML page, but it doesn't work:
http://www.forumansion.com/Mania-v20-h9.htm
http://www.forumansion.com/Mania-v20-h9.htm
Rok- Energetic
- Posts : 6823
Reputation : 234
Language : idk
Re: HTML Page (ForuMania) help
It works for me....check again.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: HTML Page (ForuMania) help
It doesn't work for me... it just shows them sitting there at the bottom left of the page.
Rok- Energetic
- Posts : 6823
Reputation : 234
Language : idk
Re: HTML Page (ForuMania) help
It works fine in my browser.
Do you use Internet Explorer?
Do you use Internet Explorer?
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: HTML Page (ForuMania) help
I used both IE8 and my default browser, and it doesn't appear to show up.
Rok- Energetic
- Posts : 6823
Reputation : 234
Language : idk
Re: HTML Page (ForuMania) help
Try firefox or opera and check if it works.
IE always has problems with CSS positioning.
EDIT :
I've checked it in IE and I'll try to fix the problem.
I need some time to do it.
IE always has problems with CSS positioning.
EDIT :
I've checked it in IE and I'll try to fix the problem.
I need some time to do it.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: HTML Page (ForuMania) help
Alright, I'll wait until you have it fixed, thanks.
Rok- Energetic
- Posts : 6823
Reputation : 234
Language : idk
Re: HTML Page (ForuMania) help
Hi guys... Cool ideas Rok.
I can help with this...
Pages with various options
*ForumMania page 1 with Fixed vertical navbar, favicon & background color option.
*ForumMania version 2 (added fixed background image)
*ForumMania version 3 with Dock Content script (follows/scrolls down the page)
I can help with this...
Pages with various options
*ForumMania page 1 with Fixed vertical navbar, favicon & background color option.
- Spoiler:
- Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>ForuMania</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<body background="" bgcolor="#E1EBF2">
<link rel="shortcut icon" href="http://i458.photobucket.com/albums/qq309/SkyShadow79/fman.png">
</head>
<div align=center><img src="http://i87.servimg.com/u/f87/13/67/77/07/mania_10.png" alt="" border="0" title="ForuMania"></div><br /><br /><br />
<table border="0" cellpadding="3" cellspacing="5" width="50%">
<tr><th><div align="left"><hr color="teal" width="450">
<img src="http://i87.servimg.com/u/f87/13/67/77/07/mania_15.png" border="0" title="FOTM"></div><br><br>
<br><br>
<div align="left"><hr color="teal" width="450">
<img src="http://i87.servimg.com/u/f87/13/67/77/07/mania_13.png" border="0" title="AOTM"></div><br><br>
<br><br>
<div align="left"><hr color="teal" width="450">
<img src="http://i87.servimg.com/u/f87/13/67/77/07/mania_11.png" border="0" title="SOTM"></div><br><br>
<br><br>
<div align="left"><hr color="teal" width="450">
<img src="http://i87.servimg.com/u/f87/13/67/77/07/mania_12.png" border="0" title="MOTM"></div><br><br>
<br><br>
<div align="left"><hr color="teal" width="450">
<img src="http://i87.servimg.com/u/f87/13/67/77/07/mania_14.png" border="0" title="EOTM"></div><br><br><br><br>
<br><br></th>
<th><br><br><br><img src="http://i87.servimg.com/u/f87/13/67/77/07/messag13.png" border="0" title="All about ForuMania..."></th></tr></table>
<div style="position:fixed; top:0; right:0; margin-top:100px; z-index:200; border:0px solid #999999; padding:5px 0 5px 5px;">
<a href="http://forumansion.com"><img src="http://i87.servimg.com/u/f87/13/67/77/07/home12.png" border="0"></a><br>
<a href="http://forumansion.com/forum.htm"><img src="http://i87.servimg.com/u/f87/13/67/77/07/forum12.png" border="0"></a><br><a href="http://comingvery,verysoon.com"><img src="http://i87.servimg.com/u/f87/13/67/77/07/blog12.png" border="0"><br><a href="http://forumansion.com/ForuMansion-Chatbox-h14.htm"><img src="http://i87.servimg.com/u/f87/13/67/77/07/mania11.png" border="0"></a>
</div>
</body>
</html>
*ForumMania version 2 (added fixed background image)
- Spoiler:
- Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>ForuMania 2</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<body style="background:url(http://i41.tinypic.com/28auvzp.png);background-attachment:fixed;"> <bgcolor="#E1EBF2">
<link rel="shortcut icon" href="http://i458.photobucket.com/albums/qq309/SkyShadow79/fman.png">
</head>
<div align=center><img src="http://i87.servimg.com/u/f87/13/67/77/07/mania_10.png" alt="" border="0" title="ForuMania"></div><br /><br /><br />
<table border="0" cellpadding="3" cellspacing="5" width="50%">
<tr><th><div align="left"><hr color="teal" width="450">
<img src="http://i87.servimg.com/u/f87/13/67/77/07/mania_15.png" border="0" title="FOTM"></div><br><br>
<br><br>
<div align="left"><hr color="teal" width="450">
<img src="http://i87.servimg.com/u/f87/13/67/77/07/mania_13.png" border="0" title="AOTM"></div><br><br>
<br><br>
<div align="left"><hr color="teal" width="450">
<img src="http://i87.servimg.com/u/f87/13/67/77/07/mania_11.png" border="0" title="SOTM"></div><br><br>
<br><br>
<div align="left"><hr color="teal" width="450">
<img src="http://i87.servimg.com/u/f87/13/67/77/07/mania_12.png" border="0" title="MOTM"></div><br><br>
<br><br>
<div align="left"><hr color="teal" width="450">
<img src="http://i87.servimg.com/u/f87/13/67/77/07/mania_14.png" border="0" title="EOTM"></div><br><br><br><br>
<br><br></th>
<th><br><br><br><img src="http://i87.servimg.com/u/f87/13/67/77/07/messag13.png" border="0" title="All about ForuMania..."></th></tr></table>
<div style="position:fixed; top:0; right:0; margin-top:100px; z-index:200; border:0px solid #999999; padding:5px 0 5px 5px;">
<a href="http://forumansion.com"><img src="http://i87.servimg.com/u/f87/13/67/77/07/home12.png" border="0"></a><br>
<a href="http://forumansion.com/forum.htm"><img src="http://i87.servimg.com/u/f87/13/67/77/07/forum12.png" border="0"></a><br><a href="http://comingvery,verysoon.com"><img src="http://i87.servimg.com/u/f87/13/67/77/07/blog12.png" border="0"><br><a href="http://forumansion.com/ForuMansion-Chatbox-h14.htm"><img src="http://i87.servimg.com/u/f87/13/67/77/07/mania11.png" border="0"></a>
</div>
</body>
</html>
*ForumMania version 3 with Dock Content script (follows/scrolls down the page)
- Spoiler:
- Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>ForuMania 3</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta name="description" content="ForuMania Awards Page + Dock Content script">
<style type="text/css">
.dockclass{
position:relative;
}
</style>
<body>
<script type="text/javascript">
/***********************************************
* Dock Content script- Created by and Dynamicdrive.com
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full script
***********************************************/
var offsetfromedge=0 //offset from window edge when content is "docked". Change if desired.
var dockarray=new Array() //array to cache dockit instances
var dkclear=new Array() //array to cache corresponding clearinterval pointers
function dockit(el, duration){
this.source=document.all? document.all[el] : document.getElementById(el);
this.source.height=this.source.offsetHeight;
this.docheight=truebody().clientHeight;
this.duration=duration;
this.pagetop=0;
this.elementoffset=this.getOffsetY();
dockarray[dockarray.length]=this;
var pointer=eval(dockarray.length-1);
var dynexpress='dkclear['+pointer+']=setInterval("dockornot(dockarray['+pointer+'])",100);';
dynexpress=(this.duration>0)? dynexpress+'setTimeout("clearInterval(dkclear['+pointer+']); dockarray['+pointer+'].source.style.top=0", duration*1000)' : dynexpress;
eval(dynexpress);
}
dockit.prototype.getOffsetY=function(){
var totaloffset=parseInt(this.source.offsetTop);
var parentEl=this.source.offsetParent;
while (parentEl!=null){
totaloffset+=parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function dockornot(obj){
obj.pagetop=truebody().scrollTop;
if (obj.pagetop>obj.elementoffset) //detect upper offset
obj.source.style.top=obj.pagetop-obj.elementoffset+offsetfromedge+"px";
else if (obj.pagetop+obj.docheight<obj.elementoffset+parseInt(obj.source.height)) //lower offset
obj.source.style.top=obj.pagetop+obj.docheight-obj.source.height-obj.elementoffset-offsetfromedge+"px";
else
obj.source.style.top=0;
}
function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
</script>
<body background="" bgcolor="">
<link rel="shortcut icon" href="http://i458.photobucket.com/albums/qq309/SkyShadow79/fman.png">
</head>
<table style="float:right;"><tr><td>
<div id="dockcontent0" class="dockclass" align="right"><a href="http://forumansion.com"><img src="http://i87.servimg.com/u/f87/13/67/77/07/home12.png" border="0"></a><br>
<a href="http://forumansion.com/forum.htm"><img src="http://i87.servimg.com/u/f87/13/67/77/07/forum12.png" border="0"></a><br><a href="http://comingvery,verysoon.com"><img src="http://i87.servimg.com/u/f87/13/67/77/07/blog12.png" border="0"><br><a href="http://forumansion.com/ForuMansion-Chatbox-h14.htm"><img src="http://i87.servimg.com/u/f87/13/67/77/07/mania11.png" border="0" class="dockclass" id="dockcontent0"></div>
</td></tr></table></div>
<table><tr><td>
<div align=center><img src="http://i87.servimg.com/u/f87/13/67/77/07/mania_10.png" alt="" border="0" title="ForuMania"></div><br><br><br>
<table border="0" cellpadding="3" cellspacing="5" width="50%">
<tr><th><div align="left"><hr color="teal" width="450">
<img src="http://i87.servimg.com/u/f87/13/67/77/07/mania_15.png" border="0" title="FOTM"></div><br><br>
<br><br>
<div align="left"><hr color="teal" width="450">
<img src="http://i87.servimg.com/u/f87/13/67/77/07/mania_13.png" border="0" title="AOTM"></div><br><br>
<br><br>
<div align="left"><hr color="teal" width="450">
<img src="http://i87.servimg.com/u/f87/13/67/77/07/mania_11.png" border="0" title="SOTM"></div><br><br>
<br><br>
<div align="left"><hr color="teal" width="450">
<img src="http://i87.servimg.com/u/f87/13/67/77/07/mania_12.png" border="0" title="MOTM"></div><br><br>
<br><br>
<div align="left"><hr color="teal" width="450">
<img src="http://i87.servimg.com/u/f87/13/67/77/07/mania_14.png" border="0" title="EOTM"></div><br><br><br><br>
<br><br></th>
<th><br><br><br><img src="http://i87.servimg.com/u/f87/13/67/77/07/messag13.png" border="0" title="All about ForuMania..."></th></tr></table>
</td><tr></table>
<script type="text/javascript">
var dock0=new dockit("dockcontent0", 0);
var dock1=new dockit("dockcontent1", 10);
</script>
</body>
</html>
Re: HTML Page (ForuMania) help
Thanks, but they still won't work on my browser. I have no clue what's going on.
And it'd take forever to download Firefox because we have Dial-up, and we can't get DSL where we live (I don't know why.)
I don't know what's going on and why it won't work.
And it'd take forever to download Firefox because we have Dial-up, and we can't get DSL where we live (I don't know why.)
I don't know what's going on and why it won't work.
Rok- Energetic
- Posts : 6823
Reputation : 234
Language : idk
Re: HTML Page (ForuMania) help
Nope, it doesn't work for the Online Editor either. TanMan said something about having this tag:
I just tested that transitional code and it worked. Thanks for the support you guys gave!
- Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
I just tested that transitional code and it worked. Thanks for the support you guys gave!
Rok- Energetic
- Posts : 6823
Reputation : 234
Language : idk
Similar topics
» HTML Page Login Form redirect to another Html Page when failed
» Using your forum’s page header and page footer in HTML?
» i Dont Want To Creat HTML Page But Edit Forums HTML
» HTML Page will not save in HTML Pages Management
» How do you load the login page instead of the index.html page automatically
» Using your forum’s page header and page footer in HTML?
» i Dont Want To Creat HTML Page But Edit Forums HTML
» HTML Page will not save in HTML Pages Management
» How do you load the login page instead of the index.html page automatically
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum