Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Coding Color - Dreamweaver 8
Old 07-27-2007, 02:17 PM Coding Color - Dreamweaver 8
Novice Talker

Posts: 8
Trades: 0
Hi Folks

I'm something of a novice to this web design but am learning as I go, and am wondering why my coding in DW8 has suddenly turned to green and blue? The page started off ok and changed half way down!

I'm sure there is an easy explanation, so please don't be too hard on my ignorance.

Thanks
basils57 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-27-2007, 02:20 PM Re: Coding Color - Dreamweaver 8
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Umm.. can we see the code -- or is this just in code view ?
DW is set to color-code your code, and it sounds like you may have an unclosed element or tag.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-27-2007, 02:45 PM Re: Coding Color - Dreamweaver 8
Y-aji's Avatar
Skilled Talker

Posts: 53
Name: Keith
Trades: 0
umm, if dw is anything like adobe after effects (i think thats the right one, there are hundreds of adobe products, it seems. )
that means you are in some kind of weird selective edit mode (i used it a very little bit and remember some kind of green thing when you were editing one particular thing).
maybe you selected a table, or something?
Y-aji is offline
Reply With Quote
View Public Profile
 
Old 07-29-2007, 09:00 AM Re: Coding Color - Dreamweaver 8
Novice Talker

Posts: 8
Trades: 0
Hi Folks thanks for the replies, and sorry to have not got back before.

The code is copied below, and I would welcome your observations.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<style type="text/css">

#dropmenudiv{
position:absolute;
border:1px solid black;
border-bottom-width: 0;
font:normal 10px/18px Verdana;
z-index:100;
}

#dropmenudiv a{
width: 100%;
display: block;
text-indent: 3px;
border-bottom: 1px solid black;
padding: 1px 0;
text-decoration: none;
font-weight: bold;
}
#dropmenudiv a:link {
color: #000000;
background: #CCCCCC;
}
#dropmenudiv a:visited {
color: #000000;
background: #CCCCCC;
}
#middle a {
text-decoration: none;
color: #666666;
margin-right: 20px;
margin-left: 20px;
font: bolder 16px Arial, Helvetica, sans-serif;
}
#middle {
width: 790px;
padding: 5px;
}
#footer a {
font: 10px "Trebuchet MS";
}
#content {
font-family: "Trebuchet MS";
color: #333333;
margin: 20px;
padding: 30px;
width: 700px;
}
#wrapper {
margin: auto;
width: 800px;
padding-bottom: 20px;
}

#dropmenudiv a:hover{ /*hover background color*/
color: #000000;
background: #FFFFFF;
}
#masthead {
background: url(images/header2.gif) no-repeat;
height: 255px;
width: 800px;

</style>

<script type="text/javascript">

/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="../out_06.html">Snowdon 2006</a>'
menu1[1]='<a href="../out_07.html">Helvellyn 2007</a>'

var menu2=new Array()
menu2[0]='<a href="../route_06.html">Snowdon 2006</a>'
menu2[1]='<a href="../route_07.html">Helvellyn 2007</a>'



var menuwidth='150px' //default menu width
var menubgcolor='lightyellow' //menu bgcolor
var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';backg round-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWid th-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeig ht-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeigh t
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHe ight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)

dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

</script>
<link href="Untitled-2.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 { font: 12px/1.4em Verdana, Arial, Helvetica, sans-serif;
}
-->
</style>
</head>

<body>
<div id="wrapper">
<div id="masthead"></div>
<div id="middle">
<div align="center">
<a href="default.htm" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event, menu, '150px')" onmouseout="delayhidemenu()">HOME </a> |
<a href="default.htm" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event, menu1, '110px')" onmouseout="delayhidemenu()">OUTINGS</a> |
<a href="default.htm" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event, menu2, '110px')" onmouseout="delayhidemenu()">ROUTE MAP</a> |
<a href="default.htm" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event, menu, '150px')" onmouseout="delayhidemenu()">GALLERY</a></div>
</div>
<div id="content">Content for id "contents" Goes Here</div>
<div id="footer">
<div align="center"><span class="style1">Copyright © Barry Smith 2006. All Rights Reserved.</span></div>
</div></style>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
</body>
</html>
basils57 is offline
Reply With Quote
View Public Profile
 
Old 07-29-2007, 06:45 PM Re: Coding Color - Dreamweaver 8
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
that's a lot of garbage code just for a dropdown menu. I can do most of that with a fraction of the scripting using CSS !

I'm not a scripting guru, but I DO know that your statments MUST be closed with a semi-colon and you're missing a ton of 'em
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-30-2007, 04:12 AM Re: Coding Color - Dreamweaver 8
vkw91's Avatar
Ultra Talker

Latest Blog Post:
Good Web Design Guide - part 1
Posts: 314
Name: Vicky
Location: Wales
Trades: 0
You forgot to add close the last CSS statement with }

Code:
 
#masthead {
background: url(images/header2.gif) no-repeat;
height: 255px;
width: 800px; }
__________________
Blog (new):
Please login or register to view this content. Registration is FREE

Portfolio:
Please login or register to view this content. Registration is FREE

Techno Pup:
Please login or register to view this content. Registration is FREE

vkw91 is offline
Reply With Quote
View Public Profile Visit vkw91's homepage!
 
Old 07-30-2007, 04:48 AM Re: Coding Color - Dreamweaver 8
Novice Talker

Posts: 8
Trades: 0
Thanks for that vkw91, it's solved my problem.

As I said before LadynRed, I'm new to this and am working on my CSS abilities - any pointers?
basils57 is offline
Reply With Quote
View Public Profile
 
Old 07-30-2007, 04:01 PM Re: Coding Color - Dreamweaver 8
webmasterj's Avatar
Experienced Talker

Posts: 44
Name: Jason
Trades: 0
If you learn best from reverse engineering code like I do
www.w3schools.com/css/ is pretty decent.
__________________
WebmasterJ


Please login or register to view this content. Registration is FREE
webmasterj is offline
Reply With Quote
View Public Profile
 
Old 07-31-2007, 10:49 AM Re: Coding Color - Dreamweaver 8
Novice Talker

Posts: 8
Trades: 0
Thanks Jason, I'll give it a go.
basils57 is offline
Reply With Quote
View Public Profile
 
Old 08-01-2007, 04:54 AM Re: Coding Color - Dreamweaver 8
Rossko's Avatar
Novice Talker

Posts: 6
Name: Rossko
Trades: 0
Very good stuff!!!
Thanks Jason!
Rossko is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Coding Color - Dreamweaver 8
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32816 seconds with 12 queries