Using ASP and VML to realize stock trend chart

Source: Internet
Author: User
-->
<HEAD>
<STYLE>
V:*{behavior:url (#default #vml);
*{FONT-SIZE:12PX}
</STYLE>
</HEAD>
<body topmargin=0 leftmargin=0 bgcolor= #D7EEFF >
<div id=showdiv style= "FONT-SIZE:12PX; color:red; Display:none; left:0px; padding-bottom:2px; padding-left:2px; padding-right:2px; padding-top:2px; Position:absolute; table-layout:fixed; top:0px; White-space:nowrap; z-index:500 "></DIV>
<script language= "JavaScript" >
<!--
Speed up the display of Alt,title
var oldtext= "abc";
function Window.onload () {
Try{myid2.height=window.document.body.scrollheight}
catch (e) {}
}
function Document.onmousemove () {
try{
if (Event.srcElement.getAttribute (' Onmover ')) {
Showdiv.style.left=event.x-3;showdiv.style.top=event.y+document.body.scrolltop+18;if (event.srcElement.onMOver! =oldtext) {oldtext=event.srcelement.onmover;showdiv.innertext=oldtext;showdiv.style.backgroundcolor= ' #FFF6FF '}; if (showdiv.style.display== ' none ') showdiv.style.display= '
if (showdiv.style.posleft+300>screen.width) {showdiv.style.posleft=520}
}
else{
if (showdiv.style.display== ') showdiv.style.display= ' none ';}
}
catch (e) {}
}
-->
</SCRIPT>
<?xml:namespace prefix=v/>
<%
' Connect to the database
Set Conn=server.createobject ("Adodb.connection")
Connstr= "Provider=sqloledb;data source= (local);d atabase=dbname;uid=user;pwd=pass;"
Conn. Open ConnStr
' Initialize, define variables
Boardid=int (Request ("Boardid"))
If Request ("boardid") = "" Then boardid=1
picwidth=720
picheight=300
' Show the Stock list Drop-down menu
Sql= "SELECT * from Board where Boardid in (select Boardid from Stocks)"
Set Rsboard=conn.execute (SQL)
Stockstr= "<select onchange=" "Location.replace (' trend.asp? Boardid= ' +this.value ' ">"
Do as not rsboard.eof
If Rsboard ("Boardid") =boardid Then
Chkstr= "Selected"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.