![]() |
|
#1
|
|||
|
|||
Open something in a divHi, I want to know how, if I have a site structured like that, a header div, a menu div in left, and a container div in right, how I do like by clicking a link in the menu div, in container div do be opened a page.
Thank you. |
|||
|
#2
|
||||
|
||||
Re: Open something in a divAs far as I know, it isn't possible to load the content of an external file inside a div tag (someone please correct me if I'm wrong). All the content that displays in the div tags needs to be there in your page. That being said, you could do something like this:
HTML Code:
I actually used 3 div tags, and I toggle which one is visible. All the variables are encapsulated in a TagSet object so that you can make multiple sets of switchable div tags. EDIT: Just to clarify, you can easily use PHP to show content from an external file on your page. The problem is that you can't dynamically change what file the content is coming from after the page loads. If you want to go that route, you could use PHP and pass the name of the file to be displayed inside each div tag as parameters. However, you would have to reload the whole page every time you wanted to change the content of one of the divs, and it sounds like you don't want to do that. __________________
www.blake-foster.com |
|
#3
|
|||
|
|||
Re: Open something in a divNo, my ideea is that my site to look like that: http://www.coco243.lx.ro/, and in the content div to display my informations, no others informations, after clicking links from my div menu, I'm a begginer in web design, and I wat to make a simple site with a menu and a right side where to show informations, my informasions structured after my menu. I hope to make myself understanded
|
|
#4
|
||||
|
||||
Re: Open something in a divYou could easily do that with the code I posted, unless I'm misunderstanding something about what you're trying to do.
__________________
www.blake-foster.com |
|
#5
|
|||
|
|||
Re: Open something in a divok, now I'm studying your code, thanks
|
|
#6
|
|||
|
|||
Re: Open something in a divMan!!, another way doesn't exist?, first of all I don't understand the code, it is very complex for me, I think you use javascript but I just have heard about javascript, I'm just want for now a simple site wrote in html and css, is it possible something like that? and second problem is that when I click the link on your menu of your page the informasion is displayed on header, I want like in the right div to be oppened a page from my pages. I don't know if you understand what I want, I don't know very well english, sorry
|
|
#7
|
||||
|
||||
Re: Open something in a divDoes your web host support PHP?
__________________
www.blake-foster.com |
|
#8
|
|||
|
|||
Re: Open something in a divI think that it does, but with css is not possible what I want to do?
|
|
#9
|
||||
|
||||
Re: Open something in a divThat depends. If you need the code that will be in the content div to be in a separate file, then no. If you can put all the code in a single file, then yes it is.
__________________
www.blake-foster.com |
|
#10
|
|||
|
|||
Re: Open something in a divNasty, then I understand that html and css are unusefull, I wasted my time trying learn them, and I belived that doing web page structured in 3 divs is easy, but..., and to be able to make web pages I have to learn php with no discution?
|
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windows Media Player doesn't open | Snowman | Computer Software Forum - Windows | 3 | 24-Aug-2008 21:34 |
| How to open files outside my program? | DeadOverlord | C++ Forum | 5 | 30-Oct-2007 21:27 |
| Apache default page can't be visited | satimis | Apache Web Server Forum | 0 | 05-Apr-2007 05:40 |
| [ANN] New script engine: Open Basic (Basic syntax) | MKTMK | Computer Programming Advertisements & Offers | 0 | 01-Sep-2005 07:13 |
| [Tutorial] Standard I/O | aaroncohn | C Programming Language | 20 | 27-Feb-2004 22:07 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The