PDA

View Full Version : where is code coming from


jeffreywk
03-12-2008, 11:42 PM
I downloaded a template and it seems to work but I cant figure out where the code is coming from on the index.html or index_dream.html.(Dreamweaver) I can see the generic latin text in the code view but I can't see or edit it in design view.Has the text just been pasted into the code? I have put a link to the entire template ZIP file on my website.Please click on the button for web design. It is named template with flash.Here is the link. Thank you!

http://www.jeffreyusa.com/ (http://www.jeffreyusa.com/)

If anyone could take a look at it and try to explain it to me I would greatly appreciate it.I registered the domain name of my site, bought web hosting and uploaded the files I created in dreamweaver to it so I'm not exactly a newbie, I guess, but I am still just learning dreamweaver and web applications. Thanks again.

P.S. The website is my first attempt so it has not been tweaked to the way I want it.Mostly just for testing. Any comments or suggestions would be welcome.

mangofreak
03-13-2008, 01:16 AM
the template code is in the following directory : /Templates/main.dwt
the css are: stylesheets/sitemap.css

what other code are you asking about?????

jeffreywk
03-13-2008, 05:00 AM
Please forgive me if we are misunderstanding one another. I believe you are looking at the source code from my website "jeffreyusa.com". I was referrring to the code in the index file inside the the folder that I posted for downloading on the web design page of my site. It is a ZIP file called "template with flash". It contains several index.html files (for different programs such as dreamweaver,go live and fromtpage...I believe??). When I open the index.html page with nothing else in the defined site there is latin text in the code but I am not sure where it is coming from.Is it pasted into the code? It seems to me that it is. When the page is previewed in a browser the text shows up. Why would it NOT be shown as a text field in the design view. It is very possible I may be in over my head with this template but I am trying to learn. Thanks for the help and patience.

edbr
03-13-2008, 05:49 AM
ok so dreamwever html on your site is just a simple html page with tables and style in the head. open it in dreamweaver code view and you will see what I have copied below (from your download)
if you look you will see the latin text which is just a page filler.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Untitled</title>
<style>
td{font-family:Tahoma;font-size:11px;}
.menu{font-weight:bold;text-decoration:none;color:#000000;font-size:10px;}
</style>
</head>

<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<table cellpadding="0" cellspacing="0" border="0" height="100%">
<tr>
<td rowspan="10" width="50%" height="100%" background="images/bg1222.jpg" style="background-position:right top; background-repeat:repeat-y"></td>
<td rowspan="10" width="1" bgcolor="#000000"></td>
<td valign="top" height="100%">
<table cellpadding="0" cellspacing="0" height="100%">
<tr>
<td valign="top">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH=502 HEIGHT=214>
<PARAM NAME=movie VALUE="0098.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#ffffff>
<EMBED src="0098.swf" quality=high bgcolor=#ffffff WIDTH=502 HEIGHT=214 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>
</td>
</tr>
<tr>
<td width="502" height="119" background="images/bg01.jpg">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top"><img src="images/capwelcome.jpg"></td>
<td rowspan="2"><img src="images/welcomepic.jpg"></td>
</tr>
<tr>
<td valign="top" style="padding-left:15px;padding-right:5px;color:#ffffff;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diem nonummy nibh euismod tincidunt ut lacreet dolore magna aliguam erat volutpat. Ut wisis enim ad minim veniam, quis nostrud exerci tution ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis te feugifacilisi. Duis autem dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="images/cap02.jpg"></td>
</tr>
<tr>
<td width="480" height="100%" background="images/bg02.jpg" valign="top">
<img src="images/pic02.jpg" hspace="15" vspace="10" align="left"><div style="padding-left:20px;padding-top:10px;padding-right:5px;color:#ffffff;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diem nonummy nibh euismod tincidunt ut lacreet dolore magna aliguam erat volutpat. Ut wisis enim ad minim veniam, quis nostrud exerci tution ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis te feugifacilisi. Duis autem dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril praesent luptatum zzril </div><div style="padding-left:20px;padding-top:10px;padding-right:5px;color:#ffffff;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diem nonummy nibh euismod tincidunt ut lacreet dolore magna aliguam erat volutpat. Ut wisis enim ad minim veniam, quis nostrud exerci tution ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis te feugifacilisi. Duis autem dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril </div>
</td>
</tr>

</table>
</td>

<td valign="top" height="100%" background="images/bgbot.jpg">
<table cellpadding="0" cellspacing="0" height="100%">
<tr>
<td><img src="images/capnews.jpg"></td>
</tr>
<tr>
<td width="278" height="96" background="images/bgr01.jpg" style="background-repeat:no-repeat;" valign="top">
<img src="images/pic011.jpg" align="left" vspace="5" hspace="15"><div style="padding-right:20px;padding-top:10px;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diem nonummy nibh euismod tincidunt ut lacreet dolore magna aliguam erat </div>
</td>
</tr>
<tr>
<td width="278" height="90" background="images/bgr02.jpg" style="background-repeat:no-repeat;" valign="top" style="padding-right:25px;">
<img src="images/pic012.jpg" align="right" vspace="5" hspace="10"><div style="padding-left:20px;padding-top:10px;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diem nonummy nibh euismod tincidunt ut lacreet dolore magna aliguam erat </div>
</td>
</tr>
<tr>
<td width="278" height="90" background="images/bgr03.jpg" style="background-repeat:no-repeat;" valign="top">
<img src="images/pic013.jpg" align="left" vspace="5" hspace="15"><div style="padding-right:20px;padding-top:10px;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diem nonummy nibh euismod tincidunt ut lacreet dolore magna aliguam erat </div>
</td>
</tr>
<tr>
<td width="278" height="108" background="images/bgr04.jpg" style="background-repeat:no-repeat;" valign="top" style="padding-right:25px;">
<img src="images/pic014.jpg" align="right" vspace="5" hspace="10"><div style="padding-left:20px;padding-top:10px;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diem nonummy nibh euismod tincidunt ut lacreet dolore magna aliguam erat </div>
</td>
</tr>
<tr>
<td width="278" height="100%" background="images/bgr05.jpg" style="background-repeat:no-repeat;" valign="top" style="padding-top:10px;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="images/pic012.jpg" vspace="10" hspace="10"><br><img src="images/pic014.jpg" vspace="5" hspace="10"></td>
<td valign="top"><img src="images/lastparty.jpg"><div style="padding-right:30px;padding-left:7px;padding-top:5px;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diem nonummy nibh euismod tincidunt ut lacreet dolore magna aliguam erat Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diem nonummy nibh euismod tincidunt ut lacreet dolore magna aliguam erat Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diem nonummy nibh euismod tincidunt ut lacreet dolore magna aliguam erat </div></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td rowspan="10" width="1" bgcolor="#000000"></td>
<td rowspan="10" width="50%" height="100%" background="images/bg1223.jpg" style="background-position:left top; background-repeat:repeat-y"></td>
</tr>
<tr>
<td colspan="2" width="780" height="93" background="images/footer.jpg" style="padding-left:50px;"><a href="" class="menu">Home</a><img src="images/mw.gif" hspace="15"><a href="" class="menu">About</a><img src="images/mw.gif" hspace="15"><a href="" class="menu">Music</a><img src="images/mw.gif" hspace="15"><a href="" class="menu">Drinks</a><img src="images/mw.gif" hspace="15"><a href="" class="menu">Gallery</a><img src="images/mw.gif" hspace="15"><a href="" class="menu">Contacts</a><div style="padding-left:100px;padding-top:10px;font-size:10px;">YourClub.Com &copy; 2003 • <a href="" style="color:#000000;text-decoration:none;">Privacy Policy</a></div></td>
</tr>
</table>
</body>
</html>

jeffreywk
03-14-2008, 05:26 AM
Thanks for the reply. How do I go about editing the index file without working strictly in the code view?

edbr
03-14-2008, 07:45 AM
in design view you can edit. but try split and it will lead you slowly into coding . one step at a time you will get there.