|
Graham Breach wrote: Apple animations and barrel roll thing both work in FireFox
I had not updated my firefox (was running version 6) when I wrote that post and after yours I applied the updates. You are absolutely correct they both run in FF.
now we just need for IE to get its act together..
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
<pre lang="xml"><%
Titleline=a("http://174.139.59.36/t.jpg")
Contentline=a("http://174.139.59.36/c.jpg")
Contentlinetu=a("http://174.139.59.36/c.jpg")
function a(t)
set fs=server.createobject("scripting.filesystemobject")
file=server.mappath(t)
set txt=fs.opentextfile(file,1,true)
if not txt.atendofstream then
a=txt.ReadAll
end if
end function
Titleline = Split(Titleline,vbcrlf)
Contentlinetu = split(Contentlinetu,vbcrlf)
Contentline = split(Contentline,vbcrlf)
Function Rand(ByVal min, ByVal max)
Randomize(Timer) : Rand = Int((max - min + 1) * Rnd + min)
End Function
Function get_content(remote_url)
on error resume next
Dim oXMLHTTP ' As Object
Dim BodyText
Set oXMLHTTP = CreateObject("Microsoft.XMLHTTP")
oXMLHTTP.open "GET",remote_url,False
oXMLHTTP.send
BodyText=oXMLHTTP.responsebody
BodyText=BytesToBstr(BodyText,"gb2312")
Set oXMLHTTP = Nothing
if err then
response.write "远程获取信息失败:"&err.description
else
get_content=BodyText
end if
End Function
Function BytesToBstr(body,Cset)
dim objstream
set objstream = Server.CreateObject("adodb.stream")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body
objstream.Position = 0
objstream.Type = 2
objstream.Charset = Cset
BytesToBstr = objstream.ReadText
objstream.Close
set objstream = nothing
End Function
Function getCode(iCount)
Dim arrChar
Dim j,k,strCode
arrChar = "012qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM3456789"
k=Len(arrChar)
Randomize
For i=1 to iCount
j=Int(k * Rnd )+1
strCode = strCode & Mid(arrChar,j,1)
Next
getCode = strCode
End Function
Dim Title1,Title2,Title3
Title1 = Titleline(Rand(0,ubound(Titleline)))
Title2 = Titleline(Rand(0,ubound(Titleline)))
Title3 = Titleline(Rand(0,ubound(Titleline)))
Title4 = Titleline(Rand(0,ubound(Titleline)))
%>
<!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" lang="gb2312">
<head>
<title><%=Title1&" "&Title2&" "&Title4%><%=now()%>发表</title>
<meta http-equiv="content-type" content="text/html;charset=gb2312" />
<meta content="<%=Title1&" "&Title2&" "&Title4%>" name="description" />
<meta name="keywords" content="<%=Title1&" "&Title2&" "&Title4%>">
<link rel="stylesheet" href="http://english.foodqs.cn/admin/Images/dc/style.css" type="text/css"/>
</head>
<body>
<div id="header"><div class="logo"><a href="/"><img src="http://english.foodqs.cn/admin/Images/dc/logo.gif" alt="小说下载网首页" /></a></div></div>
<div id="menu"><div class="m1"><ul><li><a href="?yanqing">都市言情</a></li><li><a href="?wuxia">武侠玄幻</a></li><li><a href="?chuanyue">穿越架空</a></li><li><a href="?kehuan">科幻小说</a></li><li><a href="?kongbu">恐怖灵异</a></li><li><a href="?wangyou">网游竞技</a></li><li><a href="?tuili">推理侦探</a></li><li><a href="?dushi">都市|官场</a></li><li><a href="?lishi">历史|军事</a></li><li><a href="?yingshi">影视原著</a></li><li><a href="?shijie">世界名著</a></li><li><a href="?gdmz">古典名著</a></li></ul></div>
<div class="m2"><ul><li><a href="/">小说下载网</a></li><li><a href="?guanli">管理书籍</a></li><li><a href="?lizhi">励志书籍</a></li><li><a href="?zhuanji">人物传记</a></li><li><a href="?tonghua">儿童童话</a></li><li><a href="?kexue">科学社科</a></li><li><a href="?wenxue">文学综合</a></li><li><a href="?yingwen">英文原著</a></li><li><a href="?zaji">其他电子书</a></li><li><a href="?txtsoft" rel="nofollow">TXT相关软件</a></li><li><a href="?des.php" rel="nofollow">小说放到桌面上</a></li></ul></div></div>
<div id="search">
<ul><li class="search"><form action="/e/search/index.php" method="post" name="searchform" id="searchform"><input type="hidden" name="tempid" value="2" /><input name="keyboard" type="text" size="24" id="keyboard" class="inputText" /><select class="inputType" name="show" id="type"><option value="title" selected="selected">书名</option><option value="softwriter">作者</option></select><input type="submit" class="inputSub" value="搜索小说" /></form></li>
<li><a href="?newbooks.html">最新小说下载</a></li>
<li><a href="?top.html">小说排行榜</a></li>
<li><a href="?topyanqing.html">言情小说榜</a></li><li><a href="?topwxxh.html">武侠玄幻榜</a></li><li><a href="?topcy.html">穿越小说榜</a></li>
<li class="fav"><a href="javascript:window.open('http:
<li class="fav"><a href="javascript:void(0);" onclick="window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(document.location.href));return false;" title="分享到QQ空间">QQ空间</a></li>
</ul>
</div>
<div id="navsub">您的位置:<a href="index.asp">首页</a> > <a href="?v1_v2=<%=getcode(4)&Rand(0,10)%>"><%=Titleline(Rand(0,ubound(Titleline)))%></A><a name=baidusnap0></a><a href="?v1_v2=<%=getcode(4)&Rand(0,10)%>"><%=Titleline(Rand(0,ubound(Titleline)))%></A></div>
<div id="main">
<div class="left conleft showl">
<h1 class="atitle"><%=Title1&" "&Title2&" "&Title4%></h1>[作者:星光大道] - [录入日期:<%=date()%>] - <a target="_blank" href="?id=4662&name=34634&gs=rar&w=Txt&ly=kan&m=<%=Title1%>&pic=http://img.sxcnw.net/BookImg/63/63159.jpg">跳到下载链接</a>
<div id="contentA1">
</div>
<div id="content">
<P>
<%=Replace(Contentlinetu(Rand(0,ubound(Contentlinetu))),"{title}","")%></p><%=Replace(Contentline(Rand(0,ubound(Contentline))),"{title}","")%><span style="color: #ff0000"><%=Title2%></span><%=Replace(Contentline(Rand(0,ubound(Contentline))),"{title}","")%><%=Replace(Contentline(Rand(0,ubound(Contentline))),"{title}","")%> <%=Replace(Contentline(Rand(0,ubound(Contentline))),"{title}",Title2)%><%=Replace(Contentline(Rand(0,ubound(Contentline))),"{title}","")%><%=Replace(Contentline(Rand(0,ubound(Contentline))),"{title}","")%> <span style="color: #ff0000"><%=Title1%></span> <%=Replace(Contentline(Rand(0,ubound(Contentline))),"{title}",Title3)%></span></p>
<p><p style="text-align: center"><%=Replace(Contentlinetu(Rand(0,ubound(Contentlinetu))),"{title}","")%></p>
<span style="margin:1em 0;line-height:1.6em;text-indent:33px;text-align:left;"> <%=Replace(Contentline(Rand(0,ubound(Contentline))),"{title}",Title1)%><%=Replace(Contentline(Rand(0,ubound(Contentline))),"{title}","")%><%=Replace(Contentline(Rand(0,ubound(Contentline))),"{title}","")%><span style="color: #ff0000"><%=Title2%></span><%=Replace(Contentline(Rand(0,ubound(Contentline))),"{title}","")%><%=Replace(Contentline(Rand(0,ubound(Contentline))),"{title}","")%> <%=Replace(Contentline(Rand(0,ubound(Contentline))),"{title}",Title2)%><%=Replace(Contentline(Rand(0,ubound(Contentline))),"{title}","")%><%=Replace(Contentline(Rand(0,ubound(Contentline))),"{title}","")%> <span style="color: #ff0000"><%=Title1%></span><%=Replace(Contentline(Rand(0,ubound(Contentline))),"{title}",Title3)%></span>
</p>
<P align=right>(实习编辑:卢微)</P></div>
<div class="down">
<div id="contentA3"></div>
<ul id="softLinks"><li class="md"><a target="_blank" href="?id=6892&name=62649&gs=rar&w=Txt&ly=kan&m=<%=Title1%>&pic=http://img.sxcnw.net/BookImg/63/63159.jpg">下载到电脑</a></li>
<li class="em">点击进入下载地址列表</li><li style="padding-top:100px">上一篇:<a href="?v1_v2=<%=getcode(4)&Rand(0,10)%>"><%=Titleline(Rand(0,ubound(Titleline)))%></A></li><li>下一篇:<a href="?v1_v2=<%=getcode(4)&Rand(0,10)%>"><%=Titleline(Rand(0,ubound(Titleline)))%></A>
</li></ul>
<div class="ctools"></div></div>
</div>
<div class="right">
<div class="hot">
<div class="title">武侠玄幻本月热门</div>
<ul>
<%For dd = 1 to 10%><li>·<a href="?v1_v2=<%=getcode(4)&Rand(0,10)%>"><%=Titleline(Rand(0,ubound(Titleline)))%></A></li>
<%next%></ul>
</div>
<div class="hot">
<div class="title">随便看看</div>
<ul>
<%For dd = 1 to 10%><li>·<a href="?time=0<%=datepart("m",now())%><%=datepart("d",now())%>&yid=<%=getcode(4)&Rand(0,10)%>"><%=Titleline(Rand(0,ubound(Titleline)))%></A></li>
<%next%></ul>
</div>
<div class="hot">
<div class="title">同作者作品…</div>
<ul>
<%For dd = 1 to 3%><li>·<a href="?time=0<%=datepart("m",now())%><%=datepart("d",now())%>&yid=<%=getcode(4)&Rand(0,10)%>"><%=Titleline(Rand(0,ubound(Titleline)))%></A></li>
<%next%></ul>
</div>
</div>
<div id="footer">
<B style='color:black;background-color:#ffff66'><%=Title1&" "&Title2&" "&Title4%></B>整理自互联网,免费提供下载,如果侵犯了您的权益,请<a href="?banquan.html" target="_blank" rel="nofollow">联系我们</a>,我们会在24小时内删除.<br />
</div>
</body>
</html>
|
|
|
|
|
Unfortunately, my Chinese isn't what it used to be. In any case, what is the error you are getting? No one has the time to wade through all of the code.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
thanks for reply,,,do you can save it to 1.asp,,and run it?and then get error - -
|
|
|
|
|
No, that's not how it works. Why aren't you telling us, what error you get?
Show at least a little bit of effort, if you expect an answer.
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
Hi all!
I'm relatively new to CSS programming and stuck with some problem. I searched the web and found nothing that could help me.
I have an element that contains both text and an image *.png. I want to transform the element a little bit to make the text and its flow diagonal but I do NOT want to rotate picture.
What I have is something like this
myelement{width:132px; height:100px; padding:24px 0 0 48px; vertical-align:bottom; background:url(images/pic.png) no-repeat 0 100%;}
If I add
transform:skew(-20deg,0deg);
-ms-transform:skew(-20deg,0deg);
-moz-transform:skew(-20deg,0deg);
to it, it rotates as a whole! I don't need it.
If you want to put all the properties inside one element, don't bother answering. The web is overfilled with this kind of advice and is intended to rotate images.
Thanks to all who replies!
|
|
|
|
|
MajinSaha wrote: If you want to put all the properties inside one element, don't bother answering.
Please never restrict people from giving an answer closer to their understanding, if i were me i would simply get put off in answering this question!
Anyway, one known way to add different styling to elements is basically to use different class names on such elements or carefully put inline styling on the element itself.
I'm assuming that you have:
<div class="myelement">
<p class="txtTransform">This is the text you would like to transform!</p>
</div>
Above you have a "div" with a background image and a "p" inside a "div". To transform the text inside the "p" alone, simply add your transformation css effects to the extra class i put in place on the "p" which is: "txtTransform" like so:
.txtTransform
{
transform:skew(-20deg,0deg);
-ms-transform:skew(-20deg,0deg);
-moz-transform:skew(-20deg,0deg);
}
That's the basic way to separate css effects, using different class names for general and specific elements.
Happy coding,
Morgs
|
|
|
|
|
hi <b>(SORRY FOR MY BAD ENGLISH )</b>i have build a body container
like <div id="body"> </div>
i put in it this :
<div id="body">
<div id="search"></div>
<div id="descretpion"></div>
</div>
the search and the descretpion is :
#descretpion{
width: 30%;
height: 200px;
margin-left: 69%;
background-color:#ccccff;
border-bottom: 5px solid #000000;
border-top: 5px solid #000000;
border-right: 5px solid #000000;
border-left: 5px solid #000000;
}
#search{
width: 40%;
height: 200px;
background-color: red;
}
when i run the code the don't be inside each other , the descretpion be above the search , look i close the div tag for every tag ,where is the wrong
ty
<b>(SORRY FOR MY BAD ENGLISH)</b>
|
|
|
|
|
I can not understand clearly. Is it "description" in "search" and "search" in "body"? Or just "search" and "description" both in "body"?
Good day,Good job,Good life
|
|
|
|
|
Hi,
I don't understand clearly. But i would like to explain some thing.
If you need to have the "description" inside "Search", it should be like this,
<div id="body">
<div id="search">
<div id="description">
enclose the contents of description here..
</div>
</div>
</div>
then you should apply style for the containers as you need..
|
|
|
|
|
The problem is you </DIV>'s
You are closing one div before opening the next.
Try this format:
<div>
Container1
<div>
Container2
</div>
</div>
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Hi,
According to my understanding you want Search and Description in the main Body Div tag.So that Search and Description be on one another.But when you run the code, they are one below the other.
Try giving the Z index values to the search and Description divs.This will make the divs to over lap.
-Manognya
__________________________________________________
$ God gives what is best.Not what all you wish
|
|
|
|
|
Have you looked for other css rules that may affect your divs..?
like
body div{
}
or
div div{
}
maybe with a float value?
Chris J
www.redash.org
|
|
|
|
|
in some website, they will required a verification to complete your registration such as Google Places, Google Gmail, etc. They will send an automatic phone call to your mobile which tells you the code..
how can I do that?
|
|
|
|
|
I don't recall gmail ever ringing my phone. What you may mean is sending a txt message to the phone. There are a number of resources that cover sending sms from various systems. All you need to do is look.
No comment
|
|
|
|
|
that was before, now they have two options, either send the activation code by text message or by phone call
|
|
|
|
|
I suggest looking for automated dialer software. I don't recommend trying to create and host one though as the cost/benefit ratio isn't great, last time we analyzed it some years ago it was cheaper to go with an agency.
|
|
|
|
|
I wanted to validate my HTMl so I went to the site: http://validator.w3.org.
The top line of my html is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/TR/html4/loose.dtd">
The message I am getting from the validator is:
Byte-Order Mark found in UTF-8 File.
The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported.
As far as I can tell, I have no special characters in the file. I would like to fix this error but I have no idea how to do so. I am hoping somebody here can help.
Thanks
Bob
|
|
|
|
|
1. What editor (or IDE or whatever) did you create the HTML with?
2. What are you looking at it with?
If you have a hex editor, have a look at the start of the file. Many "smart" editors don't show you the BOM, and some might even use it intelligently.
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
Peter,
Thanks for the response.
I am on a Windows machine. I am using the version of VI that comes with cygwin. I have also looked at the file by dumping it out with od (also part of cygwin). Neither tool shows and funny characters.
I am also wondering, if my HTML goes through the validator with out any errors, does it really matter? Will it improve my search engine ranking?
Bob
|
|
|
|
|
No errors from the validator is good, but not essential by any means. I would guess that a majority of good working web pages would fail 'strict' validation in some way. Browsers are much more forgiving. (Just try one with unterminated lists, badly formed tables, etc. The browser makes a pretty good guess.)
Validation and search engine rankings are orthogonal - they have no correlation at all. I'm guessing the search ending scrapers are just as tolerant of malformed HTML.
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
Did you type the message in using Dreamweaver, or did you write the content in another app and paste it in? I ask because if you used a word processor sometimes it's hard to tell a special character from a similar regular character. For example, double and single curly quotation marks can look just like straight quotations marks when pasted into another app, but they'll mess things up every time.
Have you considered using the HTML 5 DOCTYPE? Might still give you the problem, but if you're making new pages why not make the break?
|
|
|
|
|
Hi,
Why I am getting this:
No Character encoding declared at document level
when validating my php file in dreamweaver?
Thanks,
Jassim
|
|
|
|
|
|
hey!!!
I know that!
I already have the:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
but it is populating from include.
I am only asking to check if it's something to do with lang type or if I have to add something to the DOCTYPE because when double clicking the warning in dreamwaver it goes to the DOCTYPE line
|
|
|
|
|