如何设计网站内容 怎样制作自己的网页
1、确定网页的主体色调风格。我们制作自己的网页首先应该对自己的网页有一个整体的规划,是建一个什么类型的网站,网站主色调使用哪种颜色、设计布局采用什么样的方式等这些都需要有一个很好的规划。
2、规划网站的整体布局——导航、按钮、图片、文字的排版方式。做什么事都不能盲目地没有目的地进行,那样只能浪费时间浪费精力,在我们制作网页之前一定要对网页的基本元素进行一些设计。可以简单的画草图,或者浏览几个自己比较喜欢的网站学习借鉴。
3、准备和归类素材——图片、音频、视屏、文章等。制作一个网页需要大量的文件,我们必须先将这些不同类型的文件进行归类放置,整理到一个文件夹中。
4、打开Dreamweaver软件,新建一个站点,然后在站点下建立不同的文件夹存放素材。
5、建立自己的主页,按照之前的定的风格设计布局。不要急着添加图片和文字,先将导航栏,标题栏和内容栏都规划好然后在进行素材的导入。注意无论是文件夹的名还是素材名最好使用英文而不是中文。中文状态很容易报错,文件添加后就不要更改文件路劲了,否则会导致文件的丢失。
6、制作网页是一个非常复杂的过程,如果想从头到尾自己制作一个网页的话是很难说清楚的,所以这里就分享一个很简单的方法。找到一个适合自己风格或是自己比较喜欢的网页,右击鼠标——另存为。这时浏览器就会将这个网页中的所有的元素都复制下来,存放到一个文件夹中。
7、打开Dreamweaver软件代开刚刚下载的网页,这时Dreamweaver中就会显示你下载网页的所有元素,不会出现丢失的情况。
8、替换网页中的元素即可。选择需要进行修改的图片或是文字直接更换即可。选择一个元素然后在下面的属性栏中进行更换即可。同时还可以更换图片的大小和其他的属性。
9、按下F12进行预览效果即可。不满意的地方进行修改,一定要注意随时保存文件。
鄂州有专业的网站建设和网站推广的网络公司吗?
有啊,鄂州三创就不错啊,网站建设和网络推广一站式服务。。同时鄂州三创也是阿里巴巴的渠道商,如果百度是关键词点击付费的话,鄂州三创的推广服务可以做到关键词点击不收费。。。鄂州网站建设,选鄂州三创吧。。。百度搜鄂州三创就可以出来的,,谢谢采纳
网站设计的步骤
网页设计第一步是做整体框架规划,比如网站需要哪些项目,需要做一个整体的目录。类似下方图片。这一部分是最重要的,因为无框架不网站。
请点击输入图片描述
然后是开始网页设计了,首先是网页的logo和头部。这一部分的难点就在于你的logo要怎么排布,按照网页视觉设计的标准,是要做一条标准参考线的。所以logo的位置非常重要。
请点击输入图片描述
接下来是我们的导航栏,我这里做的是最简单的,只是做展示。你要设计的是导航栏各项目的位置,按钮形状等。如果有搜索,也需要考虑在其中。
请点击输入图片描述
第三部是设计网站的banner,也就是所谓的视觉区。视觉区一般是要图片,因为图片可以让用户打开网站第一眼就了解你网站的定位,从而决定要不要继续浏览。你要设计的是banner的尺寸,如果要做幻灯片的话,会如何变化。
请点击输入图片描述
接下来设计的是内容区,根据不同的内容设置不同的展现方式。例如简介的话可以是一张图片+一段文字,如果是产品介绍的话,可以是多张图片+简介。具体案例可以在网路上看别人设计的页面作为参考。
请点击输入图片描述
做好了主内容区,就剩下footer部分设计了。footer一般关系到网站的优化。footer部分包括的内容就根据不同的网页进行设计,例如展现你公司位置的地图,你想要体现的网站,甚至友链部分,都在这里。
请点击输入图片描述
最后是内链的形成。就是如果点击了你的某篇文章,会出现怎样的展现形式。所以一般一个网页设计是需要多个页面构成的。头部和底部保持不变,中间部分由ajax控制变化(这一点设计不需要懂)
当然,单纯静态页面很不好看。所以产品可能会要求做一些效果,例如悬浮窗,鼠标放上去后会实现动画效果等。对应的内容也需要网页设计进行制作。
请点击输入图片描述
如果有帮助的话,记得采纳哦!
网页设计关于下拉列表的代码
看看这个不错:
html
head
meta http-equiv="Content-Type" content="text/html; charset=gb2312" /
titleUntitled Document/title
script language="JavaScript" type="text/javascript"
//---------------------------------------------------------------------------
// 功能搜索选择框
// 作者:Joshua
// 创建时间:2007-02-07
// Email:JoshuaChen[at]126.com
// webSite:
//---------------------------------------------------------------------------
//省
var Data_Area_Province = new Array("安徽","北京","福建","甘肃","广东","广西","贵州","海南","河北","河南","黑龙江","湖北","湖南","吉林","江苏","江西","辽宁","内蒙古","宁夏","青海","山东","山西","陕西","上海","四川","天津","西藏","新疆","云南","浙江","重庆");
//市区
var Data_Area_City = new Array();
Data_Area_City[0] = new Array("安庆","蚌埠","马鞍山","宿州","铜陵","芜湖","宣城","亳州");
Data_Area_City[1] = new Array("北京");
Data_Area_City[2] = new Array("福州","龙岩","南平","宁德","莆田","泉州","三明","厦门","漳州");
Data_Area_City[3] = new Array("白银","定西","天水","武威","张掖");
Data_Area_City[4] = new Array("潮州","东莞","佛山","广州","肇庆","中山","珠海");
Data_Area_City[5] = new Array("百色","北海","崇左","防城港","桂林","贵港","河池","贺州","来宾","柳州","南宁","钦州","梧州","玉林");
Data_Area_City[6] = new Array("安顺","毕节","贵阳","六盘水","铜仁","遵义");
Data_Area_City[7] = new Array("白沙黎族自治县","乐东黎族自治县","万宁","文昌","五指山","儋州");
Data_Area_City[8] = new Array("保定","沧州","承德","邯郸","衡水","廊坊","秦皇岛","石家庄","唐山","邢台","张家口");
Data_Area_City[9] = new Array("安阳","鹤壁","济源","焦作","开封","洛阳","周口","驻马店","漯河","濮阳");
Data_Area_City[10]= new Array("大庆","大兴安岭","哈尔滨","鹤岗","七台河","齐齐哈尔","双鸭山","绥化","伊春");
Data_Area_City[11] = new Array("鄂州","恩施土家族苗族自治州","黄冈","襄樊","孝感","宜昌");
Data_Area_City[12] = new Array("常德","长沙","岳阳","张家界","株洲");
Data_Area_City[13] = new Array("白城","白山","长春","吉林","辽源","四平","松原","通化","延边朝鲜族自治州");
Data_Area_City[14] = new Array("常州","淮安","连云港","南京","南通","苏州","宿迁","泰州","无锡","徐州","盐城","扬州","镇江");
Data_Area_City[15] = new Array("抚州","赣州","吉安","景德镇","九江","南昌","萍乡","上饶","新余","宜春","鹰潭");
Data_Area_City[16] = new Array("鞍山","本溪","朝阳","沈阳","铁岭","营口");
Data_Area_City[17] = new Array("阿拉善盟","巴彦淖尔盟","包头","锡林郭勒盟","兴安盟");
Data_Area_City[18] = new Array("固原","石嘴山","吴忠","银川");
Data_Area_City[19] = new Array("果洛藏族自治州","西宁","玉树藏族自治州");
Data_Area_City[20] = new Array("滨州","德州","东营","菏泽","潍坊","烟台","枣庄","淄博");
Data_Area_City[21] = new Array("长治","大同","晋城","晋中","临汾","吕梁","朔州","太原","忻州","阳泉","运城");
Data_Area_City[22] = new Array("安康","宝鸡","汉中","商洛","铜川","渭南","西安","咸阳","延安","榆林");
Data_Area_City[23] = new Array("上海");
Data_Area_City[24] = new Array("阿坝藏族羌族自治州","绵阳","南充","内江","攀枝花","遂宁","雅安","宜宾","资阳","自贡","泸州");
Data_Area_City[25] = new Array("天津");
Data_Area_City[26] = new Array("阿里","昌都","拉萨","林芝","那曲","日喀则","山南");
Data_Area_City[27] = new Array("阿克苏","和田","喀什","吐鲁番","乌鲁木齐","五家渠","伊犁哈萨克自治州");
Data_Area_City[28] = new Array("保山","玉溪","昭通");
Data_Area_City[29] = new Array("杭州","湖州","嘉兴","金华","丽水","宁波","绍兴","台州","温州","舟山","衢州");
Data_Area_City[30] = new Array("重庆");
//学历
var Data_School = new Array("初中","高中","中专","大专","本科","双学位");
//行业
var Data_Industry = new Array("计算机类","金融/证券/保险类","财务类","工业/工厂类 ","技工类","机械/设备维修类","动力电气类", "轻工类 ","美容保健类");
//时间
var Data_Date = new Array("今天","三天内","一个星期内","半个月内","一个月内","三个月内","半年内","一年内","所有");
//层状态
var Date_DivState=new Array()
//鼠标焦点状态
var focusState=false
var Search = new Object();
//--------------------------------------
// 初始化Div标签事件
// Joshua 2007-02-07
//--------------------------------------
Search.Init = function(){
document.getElementById("Data_Area").onclick = Search.ShowArea.Init;
document.getElementById("Data_School").onclick = Search.ShowSchool;
document.getElementById("Data_Industry").onclick = Search.ShowIndustry;
document.getElementById("Data_Date").onclick = Search.ShowDate;
}
//-------------------------------
// 创建一个Div对象
// Joshua 2007-02-07
//-------------------------------
Search.CreateDiv = function(obj,Id,X,Y,oWidth,oHeight){
var Obj_Div = document.createElement("div");
Obj_Div.setAttribute("id",Id);
Obj_Div.style.position="absolute";
Obj_Div.style.background="#fff";
Obj_Div.style.zIndex = "10000";
Obj_Div.style.border="1px solid #CCCCCC";
Obj_Div.style.padding="3px";
Obj_Div.style.lineHeight ="120%";
Obj_Div.style.left=X+"px";
Obj_Div.style.top=Y+"px";
Obj_Div.style.whiteSpace="nowrap";
Obj_Div.style.width= oWidth + "px";
Obj_Div.style.height= oHeight + "px";
obj.appendChild(Obj_Div);
}
//------------------------------------
// 判断Div是否存在
// Joshua 2007-02-07
//------------------------------------
Search.IsDiv = function(Id){
var result = true
try{
document.getElementById(Id).a=1;
}catch(e){
result = false
}
return(result);
}
//----------------------------
// 删除Div对象
// Joshua 2007-02-07
//----------------------------
Search.RemoveDiv = function(Id){
try{
document.getElementById(Id).removeNode(true);
}catch(e){}
}
//---------------------------
// 遍历清除无用Div对象
// Joshua 2007-02-07
//---------------------------
Search.DelDiv = function(){
try{
document.getElementById("Div_Area").removeNode(true);
document.getElementById("Data_Area").innerHTML = "font face=\"webdings\" style=\"font-size:10px; color:#ff9900;\"4/font" + document.getElementById("Data_Area").innerText.substring(1,document.getElementById("Data_Area").innerText.length);
}catch(e){}
try{
document.getElementById("Div_School").removeNode(true);
document.getElementById("Data_School").innerHTML = "font face=\"webdings\" style=\"font-size:10px; color:#ff9900;\"4/font" + document.getElementById("Data_School").innerText.substring(1,document.getElementById("Data_School").innerText.length);
}catch(e){}
try{
document.getElementById("Div_Industry").removeNode(true);
document.getElementById("Data_Industry").innerHTML = "font face=\"webdings\" style=\"font-size:10px; color:#ff9900;\"4/font" + document.getElementById("Data_Industry").innerText.substring(1,document.getElementById("Data_Industry").innerText.length);
}catch(e){}
try{
document.getElementById("Div_Date").removeNode(true);
document.getElementById("Data_Date").innerHTML = "font face=\"webdings\" style=\"font-size:10px; color:#ff9900;\"4/font" + document.getElementById("Data_Date").innerText.substring(1,document.getElementById("Data_Date").innerText.length);
}catch(e){}
}
//--------------------------
// 失去焦点,清楚Div对象
// Joshua 2007-02-07
//--------------------------
Search.Lostfocus = function(){
if(!focusState){
try{
document.getElementById("Div_Area").removeNode(true);
document.getElementById("Data_Area").innerHTML = "font face=\"webdings\" style=\"font-size:10px; color:#ff9900;\"4/font" + document.getElementById("Data_Area").innerText.substring(1,document.getElementById("Data_Area").innerText.length);
}catch(e){}
try{
document.getElementById("Div_School").removeNode(true);
document.getElementById("Data_School").innerHTML = "font face=\"webdings\" style=\"font-size:10px; color:#ff9900;\"4/font" + document.getElementById("Data_School").innerText.substring(1,document.getElementById("Data_School").innerText.length);
}catch(e){}
try{
document.getElementById("Div_Industry").removeNode(true);
document.getElementById("Data_Industry").innerHTML = "font face=\"webdings\" style=\"font-size:10px; color:#ff9900;\"4/font" + document.getElementById("Data_Industry").innerText.substring(1,document.getElementById("Data_Industry").innerText.length);
}catch(e){}
try{
document.getElementById("Div_Date").removeNode(true);
document.getElementById("Data_Date").innerHTML = "font face=\"webdings\" style=\"font-size:10px; color:#ff9900;\"4/font" + document.getElementById("Data_Date").innerText.substring(1,document.getElementById("Data_Date").innerText.length);
}catch(e){}
}
}
Search.ShowArea = function(){} //空对象
//------------------------
// 显示地区一级菜单
// Joshua 2007-02-07
//------------------------
Search.ShowArea.Init = function(){
focusState = true;
Search.DelDiv()//删除其他DIV标签
if(!Search.IsDiv("Div_Area")){//判断对象是否建立,防止再次激发事件,引起的对象多次重复建立
//更改Data_Area对象内容
document.getElementById("Data_Area").innerHTML = "font face=\"webdings\" style=\"font-size:10px; color:#ff9900;\"6/font" + document.getElementById("Data_Area").innerText.substring(1,document.getElementById("Data_Area").innerText.length);
//显示层
Search.CreateDiv(document.body,"Div_Area",Search.getSelectPosition(document.getElementById("Data_Area"))[0],Search.getSelectPosition(document.getElementById("Data_Area"))[1]+12,80,0);
//创建省级分类
for(var i=0;iData_Area_Province.length;i++){
var Obj_Span = document.createElement("div");
Obj_Span.setAttribute("id","Div_Area_Province_"+i);
Obj_Span.setAttribute("value",i);
Obj_Span.style.cursor="pointer";
Obj_Span.onmouseover = function(){
focusState = true;
this.style.border="1px solid #827C5F";
this.style.background="#CEC497";
}
Obj_Span.onmouseout = function(){
focusState = false;
if (!Date_DivState[this.getAttribute("value")]){
this.style.border="0px solid #ffffff";
this.style.background="#fff";}
}
Obj_Span.onclick = function(){
focusState = true;
//恢复非本对象的其他一级菜单项目样式
for(var i=0;iDate_DivState.length;i++){
if(Date_DivState[i]==truethis.value!=document.getElementById("Div_Area_Province_"+i).value){
document.getElementById("Div_Area_Province_"+i).style.border="0px solid #ffffff";
document.getElementById("Div_Area_Province_"+i).style.background="#fff";
}
}
//设置层状态
Date_DivState[this.getAttribute("value")] = true;
//生成二级菜单
Search.ShowArea.InitCity(this.getAttribute("value"),this)
}
Obj_Span.innerHTML = Data_Area_Province[i] + "font face=\"webdings\" style=\"font-size:10px; color:#000;position:absolute;right:3px; \"4/font";
document.getElementById("Div_Area").appendChild(Obj_Span);
}
}
}
//----------------------
// 显示地区二级菜单
// Joshua 2007-02-07
//----------------------
Search.ShowArea.InitCity = function(oId,obj){
if(!Search.IsDiv("Div_Area_City_"+oId)){//判断对象是否建立,防止再次激发事件,引起的对象多次重复建立
//删除除对象外存在的二级菜单对象
for(var i=0;iDate_DivState.length;i++){
if(Date_DivState[i]==truei!=oId){
Search.RemoveDiv("Div_Area_City_"+i);
Date_DivState[i]=null;
}
}
//生成指定的二级菜单对象
Search.CreateDiv(obj,"Div_Area_City_"+oId,obj.offsetWidth,obj.offsetTop,50,0);
if(oIdData_Area_Province.length){
for(var i=0;iData_Area_City[oId].length;i++){
var Obj_Span = document.createElement("div");
Obj_Span.setAttribute("id","Div_Area_City"+i);
Obj_Span.style.cursor="pointer";
Obj_Span.innerText = Data_Area_City[oId][i];
Obj_Span.setAttribute("value",oId);
Obj_Span.onmouseover = function(){
focusState = true;
this.style.border="1px solid #827C5F";
this.style.background="#CEC497";
}
Obj_Span.onmouseout = function(){
focusState = false;
this.style.border="0px solid #ffffff";
this.style.background="#fff";
}
Obj_Span.onclick = function(){
//设置Data_Area的对象为选择的职
document.getElementById("Data_Area").innerHTML = "font face=\"webdings\" style=\"font-size:10px; color:#ff9900;\"4/font" + this.innerText;
//删除Div对象
Search.RemoveDiv("Div_Area");
//恢复状态数组
Date_DivState.length=0;
}
document.getElementById("Div_Area_City_"+oId).appendChild(Obj_Span);
}
}
}
}
//-------------------
// 学历Div操作
// Joshua 2007-02-07
//-------------------
Search.ShowSchool=function(){
focusState = true;
Search.DelDiv();//删除其他DIV标签
if(!Search.IsDiv("Div_School")){//判断对象是否建立,防止再次激发事件,引起的对象多次重复建立
document.getElementById("Data_School").innerHTML = "font face=\"webdings\" style=\"font-size:10px; color:#ff9900;\"6/font" + document.getElementById("Data_School").innerText.substring(1,document.getElementById("Data_School").innerText.length);
Search.CreateDiv(document.body,"Div_School",Search.getSelectPosition(document.getElementById("Data_School"))[0],Search.getSelectPosition(document.getElementById("Data_School"))[1]+12,60,0);
for(var i=0;iData_School.length;i++){
var Obj_Span = document.createElement("div");
Obj_Span.setAttribute("id","Div_School_"+i);
Obj_Span.setAttribute("value",i);
Obj_Span.style.cursor="pointer";
Obj_Span.onmouseover = function(){
focusState = true;
this.style.border="1px solid #827C5F";
this.style.background="#CEC497";
}
Obj_Span.onmouseout = function(){
focusState = false;
this.style.border="0px solid #ffffff";
this.style.background="#fff";
}
Obj_Span.onclick = function(){
document.getElementById("Data_School").innerHTML = "font face=\"webdings\" style=\"font-size:10px; color:#ff9900;\"4/font" + this.innerText;
Search.RemoveDiv("Div_School");
}
Obj_Span.innerHTML = Data_School[i];
document.getElementById("Div_School").appendChild(Obj_Span);
}
}
}
//----------------------
// 行业Div操作
// Joshua 2007-02-07
//----------------------
Search.ShowIndustry = function(){
focusState = true;
Search.DelDiv();//删除其他DIV标签
if(!Search.IsDiv("Div_Industry")){//判断对象是否建立,防止再次激发事件,引起的对象多次重复建立
document.getElementById("Data_Industry").innerHTML = "font face=\"webdings\" style=\"font-size:10px; color:#ff9900;\"6/font" + document.getElementById("Data_Industry").innerText.substring(1,document.getElementById("Data_Industry").innerText.length);
Search.CreateDiv(document.body,"Div_Industry",Search.getSelectPosition(document.getElementById("Data_Industry"))[0],Search.getSelectPosition(document.getElementById("Data_Industry"))[1]+12,160,0);
for(var i=0;iData_Industry.length;i++){
var Obj_Span = document.createElement("div");
Obj_Span.setAttribute("id","Div_Industry_"+i);
Obj_Span.setAttribute("value",i);
Obj_Span.style.cursor="pointer";
Obj_Span.onmouseover = function(){
focusState = true;
this.style.border="1px solid #827C5F";
this.style.background="#CEC497";
}
Obj_Span.onmouseout = function(){
focusState = false;
this.style.border="0px solid #ffffff";
this.style.background="#fff";
}
Obj_Span.onclick = function(){
document.getElementById("Data_Industry").innerHTML = "font face=\"webdings\" style=\"font-size:10px; color:#ff9900;\"4/font" + this.innerText;
Search.RemoveDiv("Div_Industry");
}
Obj_Span.innerHTML = Data_Industry[i];
document.getElementById("Div_Industry").appendChild(Obj_Span);
}
}
}
//-----------------------------
// 时间Div操作
// Joshua 2007-02-07
//-----------------------------
Search.ShowDate = function(){
focusState = true;
Search.DelDiv();//删除其他DIV标签
if(!Search.IsDiv("Div_Date")){//判断对象是否建立,防止再次激发事件,引起的对象多次重复建立
document.getElementById("Data_Date").innerHTML = "font face=\"webdings\" style=\"font-size:10px; color:#ff9900;\"6/font" + document.getElementById("Data_Date").innerText.substring(1,document.getElementById("Data_Date").innerText.length);
Search.CreateDiv(document.body,"Div_Date",Search.getSelectPosition(document.getElementById("Data_Date"))[0],Search.getSelectPosition(document.getElementById("Data_Date"))[1]+12,60,0);
for(var i=0;iData_Date.length;i++){
var Obj_Span = document.createElement("div");
Obj_Span.setAttribute("id","Div_Date_"+i);
Obj_Span.setAttribute("value",i);
Obj_Span.style.cursor="pointer";
Obj_Span.onmouseover = function(){
focusState = true;
this.style.border="1px solid #827C5F";
this.style.background="#CEC497";
}
Obj_Span.onmouseout = function(){
focusState = false;
this.style.border="0px solid #ffffff";
this.style.background="#fff";
}
Obj_Span.onclick = function(){
document.getElementById("Data_Date").innerHTML = "font face=\"webdings\" style=\"font-size:10px; color:#ff9900;\"4/font" + this.innerText;
Search.RemoveDiv("Div_Date");
}
Obj_Span.innerHTML = Data_Date[i];
document.getElementById("Div_Date").appendChild(Obj_Span);
}
}
}
//-----------------------
// 获取一个对象的坐标
//------------------------
Search.getSelectPosition = function(Gobj) {
var objLeft = Gobj.offsetLeft;
var objTop = Gobj.offsetTop;
var objParent = Gobj.offsetParent;
while (objParent!= null) {
objLeft += objParent.offsetLeft;
objTop += objParent.offsetTop;
objParent = objParent.offsetParent;
}
return([objLeft,objTop]);
}
//------------------------
// 页面初始化
//------------------------
window.onload=function(){
Search.Init();
}
window.document.onclick=function (){
Search.Lostfocus();
}
/script
style
BODY{FONT-SIZE: 12px;}
/style
/head
body
span id="Data_Area" style="cursor:pointer;"font face="webdings" style="font-size:10px; color:#ff9900;"4/font地区/span
span id="Data_School" style="cursor:pointer;"font face="webdings\" style="font-size:10px; color:#ff9900;"4/font学历/span
span id="Data_Industry" style="cursor:pointer;"font face="webdings" style="font-size:10px; color:#ff9900;"4/font行业/span
span id="Data_Date" style="cursor:pointer;"font face="webdings" style="font-size:10px; color:#ff9900;"4/font时间/span
/body
/html
暂无评论
发表评论