PDA

View Full Version : [Q] Source for DIV tag


pmheart6
11-28-2006, 08:02 PM
Hi, back in January/February CyanBlue and Gibberish posted saying they found that you could use src= to call the source for a DIV just like you can for an IFrame.

I do not see this working in IE 6 or FF2.

Am I doing something wrong?

It appeared like it was working for you.


Second, does it show up in search engines? I know IFrame's do not properly show up in search engines.

Thanks

tg
11-28-2006, 08:46 PM
the div tag has no src element. so it shouldnt work.
besides, what source would you supply to a div???

div (http://www.w3.org/TR/html4/struct/global.html#h-7.5.4)

anonymous
11-28-2006, 10:10 PM
@ tg...

http://www.actionscript.org/forums/showthread.php3?t=63904

pmheart6
11-28-2006, 10:14 PM
the div tag has no src element. so it shouldnt work.
besides, what source would you supply to a div???

div (http://www.w3.org/TR/html4/struct/global.html#h-7.5.4)


The biggest reason is for a template. The whole Idea of CSS is to make editing the page simple and easy. Well if you separate the body of the text, then someone can edit the information, but not mess up the main page. That includes the CSS

Now without wiki, I can give someone access to there page, and keep the header, menu, footer, CSS, and main page calling all of that separate and secure.

I will have to do it with PHP as an include. I didn't at first notice it in his page since he said src= was working.
("http://www.actionscript.org/forums/archive/index.php3/t-63904.html) I overlooked the PHP since I was not using a PHP page.

pmheart6
11-28-2006, 10:19 PM
Actually I'll probably use shtml

<!--#include virtual="insertthisfile.html" -->

tg
11-28-2006, 10:23 PM
the problem with starting out with non standards code is when it breaks later you have more work to do.... i currently support over 25 projects (maintenance), and am producing more work everyday..... going back and having to fix non-working code because if poor design (bad code) is not an option.


heh. sorry sounded pretty harsh there....

i guess im saying that just because something can be done (2 years ago), you may not want to use something as far from the standard as that appears to be.


what your proposing may work, im afraid i dont have too much experience with this approach.

pmheart6
11-29-2006, 12:29 AM
How would you create a template for users so that the header, menu, footer can be changed once, and yet the individual pages can be modified separately?


Thanks

tg
11-29-2006, 04:03 PM
so you wanna target content areas for different styles based on page?

hmmm.. should be a way to do this with javascript / dhtml on the fly for each page....

or doing it with php likely would be easy like you mentioned before....

dont know how much time i have today, but you have definetly piqued my interest in this i will see what i can about his....

pmheart6
12-04-2006, 03:29 PM
One of the rammstein web pages looked good. I can't find the one right now but I have gotten one figured out. Don't know if I like it yet. Its almost kiosk like. It works best with IE7 and Firefox, but looks ok with older ones too. I am not too concerned about IE7 since its a critical update, so many use firefox, and it does not look bad formated differently.

I was going to use absolute positioning, but when it went narrow it just looked jumbled, and I didn't want to fight with trying to get multiple browsers to work. I need no scripting (JS, Java, etc.)... Things people disable..

My main page's coding is simple.
I only need to change one menu if I add a page.
I can edit my content pages simply.
I am tempted to cut the footer size in half, and possibly removing the Mastercard images.
I still need to work on a splash page.

See the output (http://amazinghands.us)

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>Amazing Hands Therapeutic Massage (Massage Therapy Kansas City)</title>
<link rel="stylesheet" type="text/css" href="amazinghandsdefaultheader1.css" />
</head><body>
<div id="bodyarea">
Best viewed with Firefox or IE 7
<div id="headerarea"><!--#include virtual="header.html"--></div>
<div id="leftcol"><!--#include virtual="menu.html"--></div>
<div id="contents"><!--#include virtual="body/main.html"--></div>
<div id="footer"><!--#include virtual="footer.html"--></div>
</div>


</body></html>

tg
12-04-2006, 09:25 PM
nice.... gonna have to take some time and play around with that stuff.