My new website |
Author: |
Message: |
tony
Senior Member
Posts: 976 Reputation: 54
36 / /
Joined: Jul 2004
|
RE: My new website
nice forum theme the colors are really great
|
|
09-24-2005 02:42 PM |
|
|
ShawnZ
Veteran Member
Posts: 3146 Reputation: 43
32 / /
Joined: Jan 2003
|
RE: My new website
quote: Originally posted by hmaster
overflow:auto;
No, that will show a scrollbar. Instead you need overflow:hidden to disable scrollbars.
Spoiler: the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
|
|
09-24-2005 02:57 PM |
|
|
Yousef
Full Member
(previously known as Juzzi)
Posts: 487 Reputation: 19
35 / /
Joined: Jul 2004
|
O.P. RE: My new website
It should be fixed now, I changed overflow-y:hidden to overflow:hidden
|
|
09-24-2005 03:01 PM |
|
|
hmaster
Senior Member
Posts: 716 Reputation: 24
33 / /
Joined: Nov 2004
|
RE: My new website
quote: Originally posted by ShawnZ
quote: Originally posted by hmaster
overflow:auto;
No, that will show a scrollbar. Instead you need overflow:hidden to disable scrollbars.
True, but using auto should work too.
quote: Originally posted by Juzzi
Hmm I could do document.write, I'll think about it, thanks.
I used:
code: inc_syndicate_js =
'<marquee direction="left" height="20px" loop="30" scrollamount="2" scrolldelay="2" behavior="slide">'
+ 'New site now up!'
+ '</marquee>';
// end_var_declaration
document.write(inc_syndicate_js);
And then in the webpage I used
code: <div id="marquee"><script type="text/javascript" src="marquee.js"></script> </div>
This post was edited on 09-24-2005 at 03:10 PM by hmaster.
|
|
09-24-2005 03:04 PM |
|
|
Yousef
Full Member
(previously known as Juzzi)
Posts: 487 Reputation: 19
35 / /
Joined: Jul 2004
|
O.P. RE: My new website
Yes I've seen what you did. Anyway, your page validates now, but officially it isn't 'valid'. But thanks, I'll probably use your method, back ontopic
|
|
09-24-2005 03:23 PM |
|
|
_Humphreys
Veteran Member
Posts: 1140 Reputation: 20
24 / – /
Joined: Nov 2003
Status: Away
|
RE: My new website
I remember your site...someone fake emailed me from it. ¬_¬ I saw the new design and I really like it. Keep up the good work.
|
|
09-24-2005 03:35 PM |
|
|
-dt-
Scripting Contest Winner
;o
Posts: 1819 Reputation: 74
36 / /
Joined: Mar 2004
|
RE: My new website
quote: Originally posted by hmaster
I used:
code:inc_syndicate_js =
'<marquee direction="left" height="20px" loop="30" scrollamount="2" scrolldelay="2" behavior="slide">'
+ 'New site now up!'
+ '</marquee>';
// end_var_declaration
document.write(inc_syndicate_js);
And then in the webpage I used
code:
<script type="text/javascript" src="marquee.js"></script>
OH GOD!!!!!!!!!!!!!!!!!!!!!!!!!!
document.write = evil! it should never be used in xhtml docs since it can presume it needs to write to a new document and clear your page then start writing.
use something like
code: var m =document.getElementById('marquee');
inc_syndicate_js =
'<marquee direction="left" height="20px" loop="30" scrollamount="2" scrolldelay="2" behavior="slide">'
+ 'New site now up!'
+ '</marquee>';
// end_var_declaration
m.innerHTML = inc_syndicate_js;
to insert the maquee into the div.
Happy Birthday, WDZ
|
|
09-24-2005 03:38 PM |
|
|
hmaster
Senior Member
Posts: 716 Reputation: 24
33 / /
Joined: Nov 2004
|
RE: My new website
quote: Originally posted by -dt-
code: code:
var m =document.getElementById('marquee');
to insert the maquee into the div.
Why, the other way works fine, its not document.write its basically like include()
|
|
09-24-2005 03:45 PM |
|
|
-dt-
Scripting Contest Winner
;o
Posts: 1819 Reputation: 74
36 / /
Joined: Mar 2004
|
RE: My new website
quote: Originally posted by hmaster
quote: Originally posted by -dt-
code: code:
var m =document.getElementById('marquee');
to insert the maquee into the div.
Why, the other way works fine, its not document.write its basically like include()
IT IS DOCUMENT.WRITE LOOK AT YOUR CODE!!!!!!!!!!!!!!
innerHTML is alot better way then document.write , document.write is stupid we have a DOM for a reson people , by using document.write your basicly saying "hey i sure as hell dont care for the DOM so lets write random crap to it and hope it parses it right"
another better way (a WAY better way) would be a full DOM approch with
code: var orginalElement =document.getElementById('marquee');
var mElement = document.createElement('marquee');
mElement.setAttribute('direction','left');
mElement.setAttribute('style','height:20px');
mElement.setAttribute('loop','30');
mElement.setAttribute('scrollamount','2');
mElement.setAttribute('behavior','slide');
orignalElement.appendChild(mElement);
also YOUR DOCUMENT ISNT XHTML VALID if you cheat like this (thats what your doing is cheating the checker)
http://www.w3.org/MarkUp/2004/xhtml-faq#docwrite
http://ln.hixie.ch/?start=1091626816&count=1
http://www.xml.com/pub/a/2003/03/19/dive-into-xml.html
Happy Birthday, WDZ
|
|
09-24-2005 03:59 PM |
|
|
Yousef
Full Member
(previously known as Juzzi)
Posts: 487 Reputation: 19
35 / /
Joined: Jul 2004
|
O.P. RE: My new website
quote: Originally posted by -dt-
also YOUR DOCUMENT ISNT XHTML VALID if you cheat like this (thats what your doing is cheating the checker)
That's what I said. But ehm, can someone split this thread ?
|
|
09-24-2005 04:03 PM |
|
|
Pages: (2):
« First
«
1
[ 2 ]
Last »
|
|