|
Here!!
So I'm using Dreamweaver(really good, but the learning curve is a bit steep but not unlearnable), my question is that, you know how TL.net has the spoiler tags? How does one do that using HTML or it cannot be done? It looks very newbish right now I know.
Can anyone give me pointers, etc?
|
|
United States24497 Posts
|
It's just for personal use, blogging about random crap, and just mainly people wanting to know me better etc, that kind of site. Give me pointers!
|
|
On March 01 2008 11:45 SonuvBob wrote: The basics: (quote to see the html) <a href="#" onclick="document.getElementById('surprise').style.display='';return false">show surprise</a><div id="surprise" style="display: none">SURPRISE!!!</div>
OMG A SURPRISE!!
|
On March 01 2008 11:45 SonuvBob wrote: The basics: (quote to see the html) <a href="#" onclick="document.getElementById('surprise').style.display='';return false">show surprise</a><div id="surprise" style="display: none">SURPRISE!!!</div> Whoa, Bob, is this javascript? It doesn't look like HTML to me. Oh and I got another question, I'll try to be crazy specific as possible.
I want to be able to do this in PHP, and I don't know PHP slightest. I have PHP.net, and I have one PHP as template, and another as a content. So basically, the template.php would always be there and always be included in the content.php.
...anyone follow?
|
I think I understand what you are saying. Let me try to reexplain and then answer.
You want to keep the same page, but just reload the content?
You could have a header.inc and a footer.inc
You could have a div content that is your body that is your content.
so then everypage would be like,
<?php include("header.inc"); ?>
<div id = "content">
blah blah blah
</div>
<?php include("footer.inc"); ?>
|
On March 01 2008 12:37 berated- wrote: I think I understand what you are saying. Let me try to reexplain and then answer.
You want to keep the same page, but just reload the content?
You could have a header.inc and a footer.inc
You could have a div content that is your body that is your content.
so then everypage would be like,
<?php include("header.inc"); ?>
<div id = "content">
blah blah blah
</div>
<?php include("footer.inc"); ?> YES! Exactly, something like this: + Show Spoiler +
So for the header.inc is it .inc or .php? Thanks, this is something I want.
|
I've always used .php and then include
but its been a while :O
|
On March 01 2008 12:10 Raithed wrote:Show nested quote +On March 01 2008 11:45 SonuvBob wrote: The basics: (quote to see the html) <a href="#" onclick="document.getElementById('surprise').style.display='';return false">show surprise</a><div id="surprise" style="display: none">SURPRISE!!!</div> Whoa, Bob, is this javascript? It doesn't look like HTML to me. Oh and I got another question, I'll try to be crazy specific as possible. I want to be able to do this in PHP, and I don't know PHP slightest. I have PHP.net, and I have one PHP as template, and another as a content. So basically, the template.php would always be there and always be included in the content.php. ...anyone follow? Best way is probably to start learning php, and then your specific questions becomes easier.
I learned php by myself by making a starcraft-clan website for me + friends back in highschool It's pretty easy once you get started.
|
|
Germany2762 Posts
On March 01 2008 12:56 Raithed wrote:Show nested quote +On March 01 2008 12:37 berated- wrote: I think I understand what you are saying. Let me try to reexplain and then answer.
You want to keep the same page, but just reload the content?
You could have a header.inc and a footer.inc
You could have a div content that is your body that is your content.
so then everypage would be like,
<?php include("header.inc"); ?>
<div id = "content">
blah blah blah
</div>
<?php include("footer.inc"); ?> YES! Exactly, something like this: + Show Spoiler +So for the header.inc is it .inc or .php? Thanks, this is something I want.
you could use an iframe for that too.
<iframe width="100" height="100" framerborder .... ></iframe>
btw i have no clue, whether html code can be shown in my comment or not.
|
Do you know a good site that will help you learn Dreamweaver ? I'm trying to start, but it's just so intimidating ><. Thanks!
|
I guess your first question has been answered. Anymore just ask and I might be able to help. You know the [yt] tag on TL? I liked the idea so much I got it on my forum too.. I had no idea it'd take quite some time to get it all working
|
as for learning Dreamweaver why not just head over to Barnes & Nobbles? They have a nice variety not just on Dreamweaver but pretty much everything else too. That's how I learned the basics of FlashMX.
|
|
|
|