This site is READ ONLY!! No support will be given! Everything in here is just for archiving purposes!
Support for your styles questions
Forum rules
** AND PLEASE PROVIDE A LINK TO YOUR SITE THAT YOU NEED HELP WITH! OR I MIGHT NOT HELP YOU **
Makis
Post
by Makis » Mon Jun 06 2011 1:15 pm
Hi
I have a swf playing in overall header
Code: Select all
<a name="start_here"></a>
<div id="page-body">
<center><swf code></center>
Is it possible to make that appear only on index page? and how?
Thanks in advance
cisco007
Ciscox
Posts: 2843 Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico
Post
by cisco007 » Mon Jun 06 2011 2:00 pm
you are asking for support, not a discussion, thus you posted in the wrong place! i will move it!
Makis
Post
by Makis » Mon Jun 06 2011 3:40 pm
O.k. excuse me
cisco007
Ciscox
Posts: 2843 Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico
Post
by cisco007 » Mon Jun 06 2011 3:45 pm
have you tried adding the code to the index_body.html file instead of the overall_header.html?
Makis
Post
by Makis » Mon Jun 06 2011 5:10 pm
No I dint where to put the code Before that?
djs596
Post
by djs596 » Mon Jun 06 2011 5:17 pm
What about keeping your code where it is (overall_header.html) and using this:
Code: Select all
<!-- IF SCRIPT_NAME == "index" -->
<a name="start_here"></a>
<div id="page-body">
<center><swf code></center>
<!-- ENDIF -->
Makis
Post
by Makis » Mon Jun 06 2011 5:33 pm
You are absolutely right, works like a charm!!
Thanks a lot Shaun
I appreciate it
djs596
Post
by djs596 » Mon Jun 06 2011 6:10 pm
Good!
cisco007
Ciscox
Posts: 2843 Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico
Post
by cisco007 » Mon Jun 06 2011 6:53 pm
are you sure this:
Code: Select all
<a name="start_here"></a>
<div id="page-body">
is part of the swf code?
i think that is part of the entire overall_header file, you might as well just do this:
Code: Select all
<!-- IF SCRIPT_NAME == "index" -->
<div style="text-align:center"><swf code></div>
<!-- ENDIF -->
that way you don't get any errors because you are putting the previous part i stated to only show on the index, and it needs that for other parts of the forum!
and it also makes it at least xhtml strict <center> is not used anymore!
Makis
Post
by Makis » Tue Jun 07 2011 9:39 am
Thank you cisco007 I tried the code you wrote but there was an overlap problem at the bottom of all forum pages.
......
I used this one after I moved the if statement to lines down, works fine
Code: Select all
<a name="start_here"></a>
<div id="page-body">
<!-- IF SCRIPT_NAME == "index" -->
<center><swf code></center>
<!-- ENDIF -->
Thank you both…
cisco007
Ciscox
Posts: 2843 Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico
Post
by cisco007 » Tue Jun 07 2011 10:44 am
you shouldn't get a problem with the code i gave you!
I mean the code you used should work fine, but if you want your forum to pass validation you should use the code i posted!
that is all but if you are satisfied with what you got! it's ok!
Makis
Post
by Makis » Tue Jun 07 2011 11:28 am
I know, but doesn’t work
maybe conflict with something else I don’t know.
Anyway I made swf file same width with my boards and remove <center>
think is valid now..