Jump to content

kwilliams

Members
  • Posts

    229
  • Joined

  • Last visited

Everything posted by kwilliams

  1. Well, after a suggestion from Joe Fawcett and a bit of research, I was able to come up with a solution using the translate() method. This is how I did it:<?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="xml" encoding="UTF-8" indent="yes"/><xsl:variable name="keyword" select="''" /><!-- Pulls value from form field --><xsl:variable name="lc">abcdefghijklmnopqrstuvwxyz</xsl:variable><xsl:variable name="uc">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable> <xsl:template match="/"> <!-- TEST --> Keyword(s) entered: <xsl:value-of select="$keyword" /><!-- Value = "form" (without quotes) --> <br /> <xsl:for-each select="formsdocs/formsdocs/form[contains(translate(title, $uc, $lc), $keyword) and display = 'true']"> <xsl:value-of select="" /> </xsl:for-each> </xsl:template></xsl:stylesheet>And it works great now. I'll make sure to use that method with any forms I have that use the contains() method. You can see the original thread at http://p2p.wrox.com/topic.asp?TOPIC_ID=38945. Thanks anyway:)
  2. I'm trying to use the contains() method on this page, but I'm running into a strange problem. I've used this method on a similar page with success, so I'm not sure why I'm having this problem. Anyway, here's the code:XML: <?xml version="1.0" encoding="UTF-8"?><formsdocs> <form id="1"> <title>Form 1</title> <link>http://www.mysite.com/form1.aspx</link> <display>true</display> </form> <form id="2"> <title>Form 2</title> <link>http://www.mysite.com/form2.aspx</link> <display>true</display> </form> <form id="3"> <title>Form 3</title> <link>http://www.mysite.com/form3.aspx</link> <display>true</display> </form></formsdocs> XSLT: <?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="xml" encoding="UTF-8" indent="yes"/><xsl:variable name="keyword" select="''" /><!-- Pulls value from form field --> <xsl:template match="/"> <!-- TEST --> Keyword(s) entered: <xsl:value-of select="$keyword" /><!-- Value = "form" (without quotes) --> <br /> <xsl:for-each select="formsdocs/formsdocs/form[contains(title, $keyword) and display = 'true']"> <xsl:value-of select="" /> </xsl:for-each> </xsl:template></xsl:stylesheet> HTML RESULT:Keyword entered: formResult: No records show up.Keyword entered: orResult: Shows all records that contain "or", which is all 3 of them.As you can see, no results show up even though the node "title" does contain "form". If I enter "or" instead, those records do show up. They don't show up if the word entered is at the beginning or the end of the "title" node value.I've also tried using the normalize-space() method to trim any whitespace, even though there is none, but that had no affect. If anyone knows what could be the cause of this issue, I'd love to get some advice. I'm hoping that it's something simple;) Thanks.
  3. I'm using the following select menu: <html><body><form name="form1"> <select name="bycategory"> <option value="" selected="true">- Select a Category -</option> <option value="all">Default Category</option> <option value="cat1">Category 1</option> <option value="cat2">Category 2</option> </select> <input class="button" type="submit" name="submit" /></form></body></html> And I'm using the following CSS stylesheet: /*** SCREEN PROPERTIES BEGIN ***//* Other Media Device Properties (show/hide) */#printheader, #handheldheader, #printcenter, #handheldcenter, #print_subheader, #handheld_subheader { display:none;}/* Main HTML Properties */html { font-size:62.8%; height:100%;}body { font-family:arial,sans-serif; font-size:1.2em; margin:0px 0px 0px 2px; /*'margin-top' 'margin-right' 'margin-bottom' 'margin-left'*/ color:#000000; background-color:#ffffff; height:100%;}p { display:inline;}#breadcrumbs { display:inline;}/* Wrapper Properties */#wrapper { position:relative; width:100%; min-height:100%;}/* Header Properties */#screenheader {}#seal { margin:0px 0px 0px 0px; /*'margin-top' 'margin-right' 'margin-bottom' 'margin-left'*/}/* Left Column Properties */#screenleft { position:absolute; margin:0px 0px 0px -2px; /*'margin-top' 'margin-right' 'margin-bottom' 'margin-left'*/ width:121px; background-color:#660000; color:#ffffff; height:100%; left:2px; background-image:url(/newsite/images/gif/bottom.gif); background-repeat:no-repeat; background-position:left bottom;}/* Right Column Properties */#screenright {/*MASTER RIGHT COLUMN PROPERTY*/ position:absolute; margin-top:-25px; margin-right:0px; right:0px; width:240px; height:100%; background-image:url(/newsite/images/gif/rightline.gif); background-repeat:repeat; background-position:right bottom;}.screenright_module { position:relative; margin-right:0px; margin-top:0px; right:0px; width:240px;}/* Center Column Properties */#screen_subheader { clear:both; font-size:1.3em; font-style:normal; font-weight:bold; letter-spacing:normal; text-decoration:none; color:#333366; width:100%; background-image: url(/newsite/images/gif/line.gif); background-repeat: no-repeat; background-position: left bottom;}#content {/* TABULAR CONTENT */ position:relative; margin:-20px 0px 0px 126px; /*'margin-top' 'margin-right' 'margin-bottom' 'margin-left'*/ height:100%;}#content_modules {/* MAIN CONTENT */ position:relative; margin:-20px 250px 0px 126px; /*'margin-top' 'margin-right' 'margin-bottom' 'margin-left'*/ height:100%;}/* Footer Properties */#screenfooter { position:absolute; margin-left:50%; /*'margin-top' 'margin-right' 'margin-bottom' 'margin-left'*/ bottom:-140px; text-align:center;}/* Regular Links Properties */a:link { text-decoration:underline; color:#333366;}a:visited { text-decoration:underline; color:#333366;}a:active { text-decoration:underline; color:#333366;}a:hover { text-decoration:none; color:#660000;}a { text-decoration:underline; color:#333366;}img { border:0px;}/* Small Link Properties */a.small:link { font-family:verdana, arial, helvetica, sans-serif; font-size:0.8em; color:#333366; text-decoration:underline;}a.small:visited { font-family:verdana, arial, helvetica, sans-serif; font-size:0.8em; color:#333366; text-decoration:underline;}a.small:active { font-family:verdana, arial, helvetica, sans-serif; font-size:0.8em; color:#333366; text-decoration:underline;}a.small:hover { font-family:verdana, arial, helvetica, sans-serif; font-size:0.8em; color:#660000; text-decoration:none;}a.small { font-family:verdana, arial, helvetica, sans-serif; font-size:0.8em; color:#333366; text-decoration:underline;}/* Tab Link Properties */a.tabs:link { text-decoration:none; color:#000033;}a.tabs:visited { text-decoration:none; color:#000033;}a.tabs:active { text-decoration:none; color:#660000;}a.tabs:hover { text-decoration:none; color:#660000;}a.tabs { text-decoration:none; color:#000033;}/* White Header Link Properties */a.white:link { text-decoration:underline; font-weight:bold; color:#ffffff;}a.white:visited { text-decoration:underline; font-weight:bold; color:#ffffff;}a.white:active { text-decoration:underline; font-weight:bold; color:#ffffff;}a.white:hover { text-decoration:none; font-weight:bold; color:#ffffff;}a.white { text-decoration:underline; font-weight:bold; color:#ffffff;}/* Heading Properties */h1 { display:inline; font-size:1.3em; font-style:normal; font-weight:bold; letter-spacing:normal; text-decoration:none; color:#333366;}h2 { display:inline; font-size:1.2em; font-style:normal; font-weight:bold; letter-spacing:normal; text-decoration:none; color:#660000;}h3 { display:inline; font-size:1.2em; font-style:normal; font-weight:bold; letter-spacing:normal; text-decoration:none; color:#000033;}h4 { display:inline; font-size:1.1em; font-style:normal; font-weight:bold; letter-spacing:normal; text-decoration:none; color:#ff0000;}h5 { display:inline; font-size:1.0em; font-style:normal; font-weight:bold; letter-spacing:normal; text-decoration:none; color:#000000;}h6 { display:inline; font-size:1.0em; font-style:normal; font-weight:bold; letter-spacing:normal; text-decoration:none; color:#ffffff;}/* List-item Properties */ol { /* Ordered List (numbers) */}li { /* Unordered List (bullets) */ list-style-type:square;}/* Form Properties */.form { display:inline; border:collapse; font-family:verdana, arial, helvetica, sans-serif; color:#000000; font-size:.8em; font-weight:bold; padding:1px; vertical-align:top;}.textfield_bold { font-size:1em; font-weight:bold;}.textarea { font-weight:normal; font-size:1em;}.select, option { font-weight:normal; font-size:1em;}.filefield { padding:0px; font-weight:normal;}.gobutton,.imagefield { border-width:0px;}.button { width:auto; height:20px; padding:0px 0px; margin:0; /*'margin-top' 'margin-right' 'margin-bottom' 'margin-left'*/ text-align:center; cursor:pointer;}/* Horizontal Rule (line) Properties */.cranberryline { border-bottom:1px solid #660000; height:1px; color:#660000;}.navyblueline { border-bottom:1px solid #000033; height:1px; color:#000033;}.medblueline { border-bottom:1px solid #333366; height:1px; color:#333366;}/* Table Properties */td { padding-left:5px;}.blackheader { /* Black header */ font-weight:bold; color:#000000;}.whiteheader { /* White header */ font-weight:bold; color:#FFFFFF;}table.navyblueborder, table.navyblueborder td { /* Navy blue border */ border-color:#000033; border-style:solid; border-width:1px; border-collapse:collapse;}table.medblueborder, table.medblueborder td { /* Medium blue border */ border-color:#333366; border-style:solid; border-width:1px; border-collapse:collapse;}table.ltblueborder, table.ltblueborder td { /* Light blue border */ border-color:#9999CC; border-style:solid; border-width:1px; border-collapse:collapse;}table.iceblueborder, table.iceblueborder td { /* Medium blue border */ border-color:#CCCCFF; border-style:solid; border-width:1px; border-collapse:collapse;}table.maroonborder, table.maroonborder td { /* Cranberry border */ border-color:#660000; border-style:solid; border-width:1px; border-collapse:collapse;}table.blackborder, table.blackborder td { /* Black border */ border-color:#000000; border-style:solid; border-width:1px; border-collapse:collapse;}/* Div Properties */.navybluebar { /* Navy blue div bar */ font-weight:bold; color:#000000; background-color:#000033; text-indent:2px;}.medbluebar { /* Medium blue div bar */ font-weight:bold; color:#000000; background-color:#333366; text-indent:2px;}.ltbluebar { /* Light blue div bar */ font-weight:bold; color:#000000; background-color:#9999CC; text-indent:2px;}.icebluebar { /* Ice blue div bar */ font-weight:bold; color:#000000; background-color:#CCCCFF; text-indent:2px;}/*** SCREEN PROPERTIES END ***/ Which is resulting in a vertical select menu for some reason. I've tried commenting out different sections of the CSS stylehseet to find the source, but I've been unable to find it. So if anyone can see what I'm doing wrong, I'd love to get some help. Thanks.
  4. I have a DTS Package that uses an ActiveX Script using DOM to pull data from a database table, put XML tags around each field, and save that XML-formatted data to an XML file on the same server. I've included the ActiveX Script at the bottom of this post.It works great when I have the data saved to a local path, but when I try to change it to a network path, I get this error message:Windows - Delayed Write FailedWindows was unable to save all the data for this file \SERVERNAME\DIRECTORY\docs\xml\sample.xml. The data has been lost. The error may be caused by a failure of your computer hardware or network connection. Please try to save this file elsewhere.I think that the problem may be whether or not the SQL Server Agent has read/write permissions on that server, but I'm not sure how to set this up. If anyone could help me out with this process, that would be great. Thanks for any help.ActiveX Script '**********************************************************************' Visual Basic ActiveX Script'************************************************************************Function Main() Dim objADORS Dim objXMLDoc Dim nodeRoot Dim nodeTemp Dim nodeRelease 'Create ADO and MSXML DOMDocument Objects Set objADORS = CreateObject("ADODB.Recordset") Set objXMLDoc = CreateObject("MSXML2.DOMDocument.3.0") 'Run the stored procedure and load the Recordset objADORS.Open "SELECT * FROM tblTABLENAME WHERE (start_date < GETDATE()) AND (end_date > GETDATE())", _ "PROVIDER=SQLOLEDB.1;SERVER=SERVERNAME;UID=UID;PWD=PWD;DATABASE=DBNAME;" 'Prepare the XML Document objXMLDoc.loadXML "<root />" Set nodeRoot = objXMLDoc.documentElement 'For each record in the Recordset While Not objADORS.EOF Set nodeRelease = objXMLDoc.createElement("release") nodeRoot.appendChild nodeRelease Set nodeTemp = objXMLDoc.createElement("release_id") nodeTemp.nodeTypedValue = Trim(objADORS.Fields("release_id").Value) nodeRelease.appendChild nodeTemp Set nodeTemp = objXMLDoc.createElement("start_date") nodeTemp.nodeTypedValue = Trim(objADORS.Fields("start_date").Value) nodeRelease.appendChild nodeTemp Set nodeTemp = objXMLDoc.createElement("end_date") nodeTemp.nodeTypedValue = Trim(objADORS.Fields("end_date").Value) nodeRelease.appendChild nodeTemp Set nodeTemp = objXMLDoc.createElement("title") nodeTemp.nodeTypedValue = Trim(objADORS.Fields("title").Value) nodeRelease.appendChild nodeTemp Set nodeTemp = objXMLDoc.createElement("information") nodeTemp.nodeTypedValue = Trim(objADORS.Fields("information").Value) nodeRelease.appendChild nodeTemp objADORS.moveNext Wend objADORS.Close Set objADORS = Nothing 'Save the created XML document objXMLDoc.Save "\\SERVERNAME\DIRECTORY\docs\xml\XMLFILE.xml" '<--THIS DOESN'T WORK' objXMLDoc.Save "B:\docs\xml\XMLFILE.xml" '<--THIS WORKS Main = DTSTaskExecResult_SuccessEnd Function
  5. Thanks aspnetguy,When I researched the article you referenced at http://support.microsoft.com/?kbid=269074, I made some changes. I've made sure that the ownwer is set to "sa", that the job and the xml file to be outputted on the same server, and that the network path is set correctly (\\SERVERNAME\DIRECTORY\PAGENAME.xml). But I'm still getting that error when I schedule the job.I am able to run this ActiveX Script manually from my machine with no problem. But when I schedule the job, it fails and I receive this error message:Executed as user: SERVERNAME\sqlservice. ...t: DTSStep_DTSActiveScriptTask_1 DTSRun OnError: DTSStep_DTSActiveScriptTask_1, Error = -2147220482 (800403FE) Error string: Error Code: 0 Error Source= msxml3.dll Error Description: The network path was not found. Error on Line 121 Error source: Microsoft Data Transformation Services (DTS) Package Help file: sqldts80.hlp Help context: 4500 Error Detail Records: Error: -2147220482 (800403FE); Provider Error: 0 (0) Error string: Error Code: 0 Error Source= msxml3.dll Error Description: The network path was not found. Error on Line 121 Error source: Microsoft Data Transformation Services (DTS) Package Help file: sqldts80.hlp Help context: 4500 Error: -2147467259 (80004005); Provider Error: 0 (0) Error string: The network path was not found. Error source: msxml3.dll Help file: Help context: 0 ... Process Exit Code 1. The step failed.So I had my Network Administrator attempt to schedule the job directly from the server, and he wasn't able to run it manually or with a scheduled job. He obviously has complete rights to everything, so I'm not sure why he wouldn't be able to run it.If you or anyone can give me some advice on what could be causing this error, and how I can solve it, it would be very much appreciated. Thanks.
  6. I have a DTS package that does the following:1) Drops existing database data from Server B2) Imports updated DB data from Server A to Server B3) Exports "current" table data into XML file 1 via ActiveX Script4) Exports "archive" table data into XML file 2 via ActiveX ScriptAll of these steps run fine when I run them manually in Enterprise Manager (SQL Server 2000), but the last 2 ActiveX Script steps fail when scheduled. I'm including the code below. If anyone can see what I'm doing wrong, and canhelp me to fix this problem, that would be great. Thanks.ActiveX Script (current): '**********************************************************************' Visual Basic ActiveX Script'************************************************************************Function Main() Dim objADORS Dim objXMLDoc Dim nodeRoot Dim nodeTemp Dim nodeRelease 'Create ADO and MSXML DOMDocument Objects Set objADORS = CreateObject("ADODB.Recordset") Set objXMLDoc = CreateObject("MSXML2.DOMDocument.3.0") 'Run the stored procedure and load the Recordset objADORS.Open "SELECT * FROM tblTABLENAME WHERE (start_date < GETDATE()) AND (end_date > GETDATE())", _ "PROVIDER=SQLOLEDB.1;SERVER=SERVERNAME;UID=UID;PWD=PWD;DATABASE=DBNAME;" 'Prepare the XML Document objXMLDoc.loadXML "<root />" Set nodeRoot = objXMLDoc.documentElement 'For each record in the Recordset While Not objADORS.EOF Set nodeRelease = objXMLDoc.createElement("release") nodeRoot.appendChild nodeRelease Set nodeTemp = objXMLDoc.createElement("release_id") nodeTemp.nodeTypedValue = Trim(objADORS.Fields("release_id").Value) nodeRelease.appendChild nodeTemp Set nodeTemp = objXMLDoc.createElement("start_date") nodeTemp.nodeTypedValue = Trim(objADORS.Fields("start_date").Value) nodeRelease.appendChild nodeTemp Set nodeTemp = objXMLDoc.createElement("end_date") nodeTemp.nodeTypedValue = Trim(objADORS.Fields("end_date").Value) nodeRelease.appendChild nodeTemp Set nodeTemp = objXMLDoc.createElement("title") nodeTemp.nodeTypedValue = Trim(objADORS.Fields("title").Value) nodeRelease.appendChild nodeTemp Set nodeTemp = objXMLDoc.createElement("information") nodeTemp.nodeTypedValue = Trim(objADORS.Fields("information").Value) nodeRelease.appendChild nodeTemp objADORS.moveNext Wend objADORS.Close Set objADORS = Nothing 'Save the created XML document objXMLDoc.Save "B:\dbdata_current.xml" Main = DTSTaskExecResult_SuccessEnd Function ActiveX Script (archive): '**********************************************************************' Visual Basic ActiveX Script'************************************************************************Function Main() Dim objADORS Dim objXMLDoc Dim nodeRoot Dim nodeTemp Dim nodeRelease 'Create ADO and MSXML DOMDocument Objects Set objADORS = CreateObject("ADODB.Recordset") Set objXMLDoc = CreateObject("MSXML2.DOMDocument.3.0") 'Run the stored procedure and load the Recordset objADORS.Open "SELECT * FROM tblTABLENAME WHERE end_date <= GETDATE()", _ "PROVIDER=SQLOLEDB.1;SERVER=SERVERNAME;UID=UID;PWD=PWD;DATABASE=DBNAME;" 'Prepare the XML Document objXMLDoc.loadXML "<root />" Set nodeRoot = objXMLDoc.documentElement 'For each record in the Recordset While Not objADORS.EOF Set nodeRelease = objXMLDoc.createElement("release") nodeRoot.appendChild nodeRelease Set nodeTemp = objXMLDoc.createElement("release_id") nodeTemp.nodeTypedValue = Trim(objADORS.Fields("release_id").Value) nodeRelease.appendChild nodeTemp Set nodeTemp = objXMLDoc.createElement("start_date") nodeTemp.nodeTypedValue = Trim(objADORS.Fields("start_date").Value) nodeRelease.appendChild nodeTemp Set nodeTemp = objXMLDoc.createElement("end_date") nodeTemp.nodeTypedValue = Trim(objADORS.Fields("end_date").Value) nodeRelease.appendChild nodeTemp Set nodeTemp = objXMLDoc.createElement("title") nodeTemp.nodeTypedValue = Trim(objADORS.Fields("title").Value) nodeRelease.appendChild nodeTemp Set nodeTemp = objXMLDoc.createElement("information") nodeTemp.nodeTypedValue = Trim(objADORS.Fields("information").Value) nodeRelease.appendChild nodeTemp objADORS.moveNext Wend objADORS.Close Set objADORS = Nothing 'Save the created XML document objXMLDoc.Save "B:\dbdata_archive.xml" Main = DTSTaskExecResult_SuccessEnd Function
  7. Thanks for the info Skemcin. I may be forced to use JavaScript if I can't find a solution to this. But I'm trying to stay away from JS after some bad previous experience.I was able to isolate the problem to the iefixes.htc document. I was originally forwarded this idea from Vladdy in another forum, which you can see at http://www.vladdy.net/Demos/IEPseudoClassesFix.html. It's an IE hack that uses the behavior property to only load in IE. It basically makes the hover property work in IE.It used to work great, but now loads extremely slowly in IE. I think that it may have to do with the latest service pkg downloaded for IIS that came with a patch for IE 6.0.When I comment-out the reference to that document, the page loads normally. If you or anyone else let me know why this would be happening, that would be great.Also, I've tried to get this stylesheet to work in IE without the .htc doc, but the popups don't work. I tried the IE hack of adding "border:0;" to any "hover" reference in the stylesheet, but it didn't get the popups to show up. If you can see another way to accomplish this without the use of the IE hack, that would also be great.Thanks.New CSS Stylesheet: /*Page Properties*/.noPrint { display: none; } a { background: transparent; font-family: arial, sans-serif; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; text-decoration: underline;}a:link,a:visited { color: #306;}a:hover { color: #F00; text-decoration: none;}a:active { color: #306;}a.small { background: transparent; font-family: arial, sans-serif; font-size: 10px; font-style: normal; font-weight: normal; letter-spacing: normal; text-decoration: underline;}a.small:link,a.small:visited { color: #306;}a.small:hover { color: #F00; text-decoration: none;}a.small:active { color: #306;}body { font-family: arial, sans-serif; background-color:#FFF; margin-top:0; margin-left:0; margin-bottom:0; margin-right:0; color:#000000;}p { font-size:12px; font-style:normal; letter-spacing:normal; text-decoration:none; color:#000;}p.small { font-size:10px;}p.red { font-size:10px; color:#F00;}div { font-family: arial, sans-serif; font-size:10px; font-style:normal; letter-spacing:normal; text-decoration:none; color:#000;}div.small { font-size:10px;}div.red { font-size:10px; color:#F00;}td { font-size:12px; font-style:normal; letter-spacing:normal; text-decoration:none;}td.small { font-size:10px;}td.topback2 { background-image:url(../images/topback2.gif)}td.btmlines2 { background-image:url(../images/btmlines2.gif)}table { font-family: arial, sans-serif; border-collapse:collapse;}/* Light blue-gray border */table.bluegrayborder, table.bluegrayborder td { border-width:1px; border-style:solid; border-color:#CCC;}/* Medium blue border */table.medblueborder, table.medblueborder td { border-width:1px; border-style:solid; border-color:#66C;}/* Dark blue border */table.darkblueborder, table.darkblueborder td { border-width:1px; border-style:solid; border-color:#306;}/* Maroon border */table.maroonborder, table.maroonborder td { border-width:1px; border-style:solid; border-color:#600;}/* Black border */table.blackborder, table.blackborder td { border-width:1px; border-style:solid; border-color:#000;}/* White border */table.whiteborder, table.whiteborder td { border-width:1px; border-style:solid; border-color:#FFF;}/* Cream border */table.creamborder, table.creamborder td { border-width:1px; border-style:solid; border-color:#FFC;}li { font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-decoration:none; color:#000000;}h1, h2, h3, h4, h5, h6 { display:inline; font-style:normal; font-weight:bold; letter-spacing:normal; text-decoration:none;}h1 { font-size:16px; color:#600;}h2 { font-size:14px; color:#000;}h3 { font-size:12px; color:#FFF;}h4 { font-size:10px; color:#F00;}/*Form Properties*/form { color:#000; font-size: 12px;}.formButton { background-color:#ccc; font-size: 8pt; font-weight: bold; width: auto; height: 20px; padding: 0px 0px; margin: 1px; text-align: center; cursor:pointer; border-color:#336;}input, textarea { padding: 1px; background-color:#FFF; border: inset 2px #600;}.blueform { padding: 1px; background-color:#FFF; border: inset 2px #336;}/*Navigation Properties*/#nav1 { /* Main Nav Properties */ border: 1px solid #306; background: #FFFFCC; font-family: arial,sans-serif; font-size: 10px;}#nav1 ul { /* Main Nav Unordered List Properties */ display: block; margin: 0px; padding: 0px; font-family: arial,sans-serif; font-size: 10px;}#nav1 li { /* Main List Properties */ behavior: url(/scriptlibrary/iefixes.htc); display: block; list-style: inline; line-height: 1.5em; font-family: arial,sans-serif; font-size: 10px;}#nav1 li:hover, #nav1 li.hover { /* List Hover Properties */ background: #CCCCFF; display: inline; border: 0;}#nav1 ul.sub1 { /* Nav Unordered List 'Sub1' Properties */ position: absolute; border: 1px solid #330066; padding: 0px; background: #FFFFCC; margin: 0px 0px 0px -1px; width: 90px; /* MUST BE HERE FOR NS TO WORK*/ display: none;}#nav1 ul.sub2 { /* Nav Unordered List 'Sub2' Properties */ position: absolute; border: 1px solid #330066; padding: 0px; background: #FFFFCC; margin: -16px 0px 0px 90px; width: 90px; /* MUST BE HERE FOR NS TO WORK*/ display: none;}#nav1 ul.sub3 { /* Nav Unordered List 'Sub3' Properties */ position: absolute; border: 1px solid #330066; padding: 0px; background: #FFFFCC; margin: -16px 0px 0px 90px; width: 90px; /* MUST BE HERE FOR NS TO WORK */ display: none;}#nav1 li>ul.sub1 { /* Nav <LI> to <UL> 'Sub1' Properties */ margin: 0em 0px 0px 0em;} #nav1 li>ul.sub2 { /* Nav <LI> to <UL> 'Sub2' Properties */ margin: -1.5em 0px 0px 90px; /* NS */}#nav1 li>ul.sub3 { /* Nav <LI> to <UL> 'Sub3' Properties */ margin: -1.5em 0px 0px 90px; /* IE */}#nav1 ul.root li:hover ul.sub1, #nav1 ul.root li.hover ul.sub1 { display: block; border: 0;}#nav1 ul.sub1 li:hover ul.sub2, #nav1 ul.sub1 li.hover ul.sub2 { display: block; border: 0;}#nav1 ul.sub2 li:hover ul.sub3, #nav1 ul.sub2 li.hover ul.sub3 { display: block; border: 0;}#nav1 a { /* IE */ color: #330066; text-decoration: none; line-height: 1.5em; display: block; width: 90px; height: auto; font-family: arial,sans-serif; font-size: 10px;}#nav1 a:hover,#nav1 a.hover { color: #330066; background: #CCF; display: block; width: 90px; border: 0;}.hassub3 { background: url('arrows.gif') no-repeat right center;} .htc Doc: <PUBLIC:ATTACH EVENT="onmouseover" ONEVENT="DoHover()" /><PUBLIC:ATTACH EVENT="onmouseout" ONEVENT="RestoreHover()" /><PUBLIC:ATTACH EVENT="onmousedown" ONEVENT="DoActive()" /><PUBLIC:ATTACH EVENT="onmouseup" ONEVENT="RestoreActive()" /><script language="JScript">function DoHover() { element.className += ' hover'; }function DoActive() { element.className += ' active'; }function RestoreHover() { element.className = element.className.replace(/\bhover\b/,''); }function RestoreActive() { element.className = element.className.replace(/\bactive\b/,''); }</script>
  8. Yes I have. On some machines, it loads ok in IE. But on others it loads extremely slowly, including my own. To test this out, I removed the CSS rollovers from the home page on a test page, and it did load much more quickly in IE 6.0. So that's why I think this is at least a major part of the problem.
  9. I have a site that uses CSS rollovers, but they load very slowly in IE 6.0. They load pretty quickly in Mozilla Firefox. You can view the home page at http://www.douglas-county.com/, and the CSS code is posted below. If someone could please view the source-code and give me some idea(s) on why it's not loading quickly in IE, it would be greatly appreciated. Also, is there a way to cache CSS? Thanks for any advice.CSS code: <style type="text/css">/*Page Properties*/.noPrint { display: none; } a:link { font-family:arial,sans-serif; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-decoration:underline; color:#330066;}a:visited { font-family:arial,sans-serif; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-decoration:underline; color:#330066;}a:hover { color:#ff0000; text-decoration:none;}a:active { font-family:arial,sans-serif; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-decoration:underline; color:#330066;}a.small:link { font-family:arial,sans-serif; font-size:10px; color:#330066; text-decoration:underline;}a.small:visited { font-family:arial,sans-serif; font-size:10px; color:#330066; text-decoration:underline;}a.small:hover { font-family:arial,sans-serif; font-size:10px; color:#ff0000; text-decoration:none;}a.small:active { font-family:arial,sans-serif; font-size:10px; color:#330066; text-decoration:underline;}l:visited { font-family:arial,sans-serif; font-size:10px; color:#330066; text-decoration:underline;}body { background-color:#ffffff; margin-top:0; margin-left:0; margin-bottom:0; margin-right:0; color:#000000;}p {font-family:arial,sans-serif; font-size:12px; font-style:normal; letter-spacing:normal; text-decoration:none; color:#000000;}p.small { font-family:arial,sans-serif; font-size:10px; font-style:normal; letter-spacing:normal; text-decoration:none; color:#000000;}p.red { font-family:arial,sans-serif; font-size:10px; font-style:normal; letter-spacing:normal; text-decoration:none; color:#ff0000;}div.small { font-family:arial,sans-serif; font-size:10px; font-style:normal; letter-spacing:normal; text-decoration:none; color:#000000;}td { font-family:arial,sans-serif; font-size:12px; font-style:normal; letter-spacing:normal; text-decoration:none;}td.small { font-family:arial,sans-serif; font-size:10px; font-style:normal; letter-spacing:normal; text-decoration:none;}td.topback2 {background-image:url(../images/topback2.gif)}td.btmlines2 {background-image:url(../images/btmlines2.gif)}/* Light blue-gray border */table.bluegrayborder, table.bluegrayborder td {border-color:#CCCCCC;border-style:solid;border-width:1px;border-collapse:collapse;}/* Medium blue border */table.medblueborder, table.medblueborder td {border-color:#6666CC;border-style:solid;border-width:1px;border-collapse:collapse;}/* Dark blue border */table.darkblueborder, table.darkblueborder td {border-color:#330066;border-style:solid;border-width:1px;border-collapse:collapse;}/* Maroon border */table.maroonborder, table.maroonborder td {border-color:#660000;border-style:solid;border-width:1px;border-collapse:collapse;}/* Black border */table.blackborder, table.blackborder td {border-color:#000000;border-style:solid;border-width:1px;border-collapse:collapse;}/* White border */table.whiteborder, table.whiteborder td {border-color:#FFFFFF;border-style:solid;border-width:1px;border-collapse:collapse;}/* Cream border */table.creamborder, table.creamborder td {border-color:#FFFFCC;border-style:solid;border-width:1px;border-collapse:collapse;}div.red { font-family:arial,sans-serif; font-size:10px; font-style:normal; letter-spacing:normal; text-decoration:none; color:#ff0000;}li { font-family:arial,sans-serif; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-decoration:none; color:#000000;}h1 { display:inline; font-family:arial,sans-serif; font-size:16px; font-style:normal; font-weight:bold; letter-spacing:normal; text-decoration:none; color:#660000;}h2 { display:inline; font-family:arial,sans-serif; font-size:14px; font-style:normal; font-weight:bold; letter-spacing:normal; text-decoration:none; color:#000000;}h3 { display:inline; font-family:arial,sans-serif; font-size:12px; font-style:normal; font-weight:bold; letter-spacing:normal; text-decoration:none; color:#ffffff;}h4 { display:inline; font-family:arial,sans-serif; font-size:10px; font-style:normal; font-weight:bold; letter-spacing:normal; text-decoration:none; color:#ff0000;}/*Form Properties*/#formButton { background-color:#cccccc; color:#000000; font-size: 8pt; font-family: arial,sans-serif; font-weight: bold; width: auto; height: 20px; padding: 0px 0px; margin: 1px; text-align: center; cursor:pointer;}.formButton { background-color:#cccccc; color:#000000; font-size: 8pt; font-family: arial,sans-serif; font-weight: bold; width: auto; height: 20px; padding: 0px 0px; margin: 1px; text-align: center; cursor:pointer; border-color:#333366;}INPUT, TEXTAREA { font-family:arial,sans-serif; padding: 1px; font-size: 12px; color:#000000; background-color:#FFFFFF; border: inset 2px #660000;}.blueform { font-family:arial,sans-serif; padding: 1px; font-size: 12px; color:#000000; background-color:#FFFFFF; border: inset 2px #333366;}/*Navigation Properties*/#nav1 { /* Main Nav Properties */ border: 1px solid #330066; background: #FFFFCC; font-family: arial,sans-serif; font-size: 10px;}#nav1 ul { /* Main Nav Unordered List Properties */ display: block; margin: 0px; padding: 0px; font-family: arial,sans-serif; font-size: 10px;}#nav1 li { /* Main List Properties */ behavior: url(/scriptlibrary/iefixes.htc); display: block; list-style: inline; line-height: 1.5em; font-family: arial,sans-serif; font-size: 10px;}#nav1 li:hover, #nav1 li.hover { /* List Hover Properties */ background: #CCCCFF; display: inline;}#nav1 ul.sub1 { /* Nav Unordered List 'Sub1' Properties */ position: absolute; border: 1px solid #330066; padding: 0px; background: #FFFFCC; margin: 0px 0px 0px -1px; width: 90px; /* MUST BE HERE FOR NS TO WORK*/ display: none;}#nav1 ul.sub2 { /* Nav Unordered List 'Sub2' Properties */ position: absolute; border: 1px solid #330066; padding: 0px; background: #FFFFCC; margin: -16px 0px 0px 90px; width: 90px; /* MUST BE HERE FOR NS TO WORK*/ display: none;}#nav1 ul.sub3 { /* Nav Unordered List 'Sub3' Properties */ position: absolute; border: 1px solid #330066; padding: 0px; background: #FFFFCC; margin: -16px 0px 0px 90px; width: 90px; /* MUST BE HERE FOR NS TO WORK */ display: none;}#nav1 li>ul.sub1 { /* Nav <LI> to <UL> 'Sub1' Properties */ margin: 0em 0px 0px 0em;} #nav1 li>ul.sub2 { /* Nav <LI> to <UL> 'Sub2' Properties */ margin: -1.5em /*Width*/ 0px /*Width*/ 0px /*Width*/ 90px /*Width*/; /* NS */}#nav1 li>ul.sub3 { /* Nav <LI> to <UL> 'Sub3' Properties */ margin: -1.5em /*Width*/ 0px /*Width*/ 0px /*Width*/ 90px /*Width*/; /* IE */}#nav1 ul.root li:hover ul.sub1, #nav1 ul.root li.hover ul.sub1 { display: block;}#nav1 ul.sub1 li:hover ul.sub2, #nav1 ul.sub1 li.hover ul.sub2 { display: block;}#nav1 ul.sub2 li:hover ul.sub3, #nav1 ul.sub2 li.hover ul.sub3 { display: block;}#nav1 a { /* IE */ color: #330066; text-decoration: none; line-height: 1.5em; display: block; width: 90px; height: auto; font-family: arial,sans-serif; font-size: 10px;}#nav1 a:hover,#nav1 a.hover { color: #330066; background: #CCCCFF; display: block; width: 90px;}.hassub3 { background: url('http://www.douglas-county.com/images/arrows.gif') no-repeat right center;}</style> [edit]changed code to codebox to preserver space - skemcin
×
×
  • Create New...