Jump to content

RRRSystems

Members
  • Content Count

    19
  • Joined

  • Last visited

Everything posted by RRRSystems

  1. Thanks, That did the trick. I have read that <noscript> is not supported, but it seems to work, just thought I would try to follow the rules. Now I have to see what the Search Engines think of hidden <div>'s. Thanks again, I could have looked at it all day and not seen the error. Raney the dyslexic programmer.
  2. Hello, I am switching from HTML to XHTML and would like to have the same functionality of my <noscript> tag. I have been trying all day to get this to work (like Brady and the Patriots) but nothing seems to work. Any help before the game? <!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> <script type = "text/javascript"> window.onload = function() { document.getElementByID("Content").style.display = "inline"; document.getElementByID("Footer").style.display = "inline"; document.getElementByID("NoScript").style.display = "none"; } </script></head><body> <div id = "Header">My Header Stuff.</div> <div id = "Content" style = "display: none;">My Content Stuff.</div> <div id = "Footer" style = "display: none;">My Footer Stuff.</div> <div id = "NoScript" style = "display: inline;">My NoScript Stuff.</div></body></html> Thanks, Raney
  3. Hello, I have a question about making the content of mata tags readable with my editor. I would like to keep all of the content visible in the editor without scrolling the width of the page. Will both of these produce the same result? <meta name = "description" content = "Company is located north of City in Town, ST. We are a technology consulting company specializing in IT services." /> <meta name = "description" content = "Company is located north of City in Town, ST. We are a technology consulting company pecializing in IT services." /> In the first content I have used the "Enter" key to advance to the next line. In the second I have just entered the content string all on one line. Thanks, Raney
  4. I can get the name of the .wsf Script with WScript.ScriptName or WScript.ScriptFullName. What I am looking for is the name of the .vbs Script I know these don't exist, but something like Me.Name or My.Name when I use it in the included .vbs Script. Raney
  5. This seems to be the way to go, But I need to enter the file name to get the file name Sub ShowFileInfo() Dim FSO, F Set fso = CreateObject("Scripting.FileSystemObject") 'Set F = FSO.GetFile() 'Wrong Number of Arguments 'Set F = FSO.GetFile("") 'Invalid Procedure Call or Argument 'Set F = FSO.GetFile(".") 'File Not Found 'Argument in examples is always filespec, but nobody explains filespec Set F = FSO.GetFile("C:RRRSystemsSoftwareScript.IncludeClass.Script.vbs") 'This works but I want it for the current file whatever that may be 'even if I rename, move it or use the class in another Script MsgBox F.Name 'MsgBox = F.Path 'MsgBox = F.ShortName 'MsgBox = F.ShortPath 'MsgBox = F.DateCreated 'MsgBox = F.DateLastAccessed 'MsgBox = F.DateLastModifiedEnd Sub Raney
  6. Hello, I have a similar post in this forum, I may have asked my question incorrectly. I have a file "C:RRRSystemsScriptIncludeClass.Script.vbs." how can I get this file name from a Subroutine within the script itself. The file is an Include in a file "C:RRRSystemsScriptX-Testing.wsf" <job id = "X-Testing.wsf"> <script language = "VBScript" Src = ".Include/Class.Script.vbs"/></job> If I use WScript.ScriptName or WScript.ScriptFullName in the file "C:RRRSystemsScriptIncludeClass.Script.vbs." it returns the name of the .wsf "C:RRRSystemsScriptX-Testing.wsf". Perhaps because it is an included file. Any Ideas? Thanks, Raney
  7. I thought I had found it with the WScript. I had to do a lot of searching to find that. I will keep on looking and post here when I finally get it. Thanks, Raney
  8. I have tried that it gives me the name of the .wsf that includes the .vbs files <job id = "X-Testing.wsf"><script language = "VBScript" Src = ".Include/Class.Script.vbs"/><script language = "VBScript" Src = ".Include/Constants.vbs"/><script language = "VBScript" Src = ".Include/Utility.vbs"/><script language = "VBScript" Src = "Development/X-Testing.vbs"/></job> When I use WScript.ScriptName or WScript.ScriptFullName in the .vbs Script I get the name of this file. Thanks, Raney
  9. Hello, I would like to get the name of the .vbs script that is running. I will store that name and some other info as properties once I can get it, I know how to make those changes. In my example I have where I would like to get the name and other info, I am just using a msgbox for now to try and find it. Thanks, Raney '/////////////////////////////////////////////////////////////////////////////// '/ Class.Script.vbs '/////////////////////////////////////////////////////////////////////////////// Option Explicit '/////////////////////////////////////////////////////////////////////////////// '/ 01-0000 2013/09/04; Initial Release; VBScript Version 5.8 Compliant. '/////////////////////////////////////////////////////////////////////////////// Class Script_Object '------------------ Private MyTitle, _ '<<<<< I will add the property here and create the Get and Let MyCopyright, _ ' to go with it MyVersion Private Sub Class_Initialize() MyTitle = "Script_Object" MyCopyright = "2013" MyVersion = "01-0000" End Sub Private Sub Class_Terminate() End Sub Public Property Get Title Title = MyTitle End Property Public Property Get Copyright Copyright = MyCopyright End Property Public Property Get Version Version = MyVersion End Property Property Let Title(StrTitle) MyTitle = StrTitle End Property Property Let Copyright(StrYear) MyCopyright = StrYear End Property Property Let Version(StrVersion) MyVersion = StrVersion End Property End Class '/////////////////////////////////////////////////////////////////////////////// Public Script '/////////////////////////////////////////////////////////////////////////////// Private Sub Initialize() '----------------------- Set Script = New Script_Object msgbox whatever ' <<<< this is where I would like to get the .vbs name and store as a property End Sub '/////////////////////////////////////////////////////////////////////////////// Initialize '///////////////////////////////////////////////////////////////////////////////
  10. Thanks, That is probably why I could not get it to work! I am planning a group of projects that are to be used as examples for creating the same site taking a different approach. The first is the current and main project using: HTML, CSS and JS. I will now use JS to accomplish most of the task.If people do not have Scripting enabled all they will get is a basic Introduction page and a link to the Table of Contents.I have checked for statistics on the number of people with Scripting disabled and have decided that I do not need to write so much, for so few.I will have a notice that Scripting is required and a link to a document explaining what Scripting is, and how to enable it. Now I will add two more examples to the project: HTML Only, and HTML with CSS Only.With only a Home Page and a link to the Table of Contents this will not add much to the these two will not add that much to the entire project.I can only think of what the HTML Only code will look like. Thanks,Raney
  11. Hello, I have been looking for a way to use CSS to spectfy Anchoe Attrubutes.I have the following HTML: <a title = "Privacy Policy in (.pdf) Portable Document Format." href = "/Document/Privacy-Policy.pdf" target = "_blank"><u>Privacy Policy</u> </a> Is there a way of using CSS to contain some of the HTML: <a class = "New-Window" id = "Privacy-Policy"><u>Privacy Policy</u></a> Something like this in CSS:.New-Window{ target:"_blank";} #Privacy-Policy{ href:"/Document/Privacy-Policy.pdf"; title:"Privacy Policy in (.pdf) Portable Document Format."} I cannot seem to get anything like this to work.It would make changing <a> items on multiple HTML pages. Thanks, Raney
  12. That did the trick. #Navigator{ width: 230px; min-height: 150px; padding: 5px 0; color: #447EB0; background-image: url("/Image/Navigator.jpg"); background-repeat: repeat-y;}#Navigator a:link,#Navigator a:visited{ color: #447EB0;}#Navigator li{ padding: 5px 10px; font-size: 13px; text-align: left;} Thanks, Raney
  13. Thanks,I will try this today and post changes to .css. Raney
  14. RRRSystems

    Navigator Spacing

    Hello, I have a Navigator that has a couple of Items that wrap to 2 lines. How can I get the 2 line items to have a smaller line hite than the seperate Items? I Have attached the .css and .html Thanks, Raney Spacing.txt
  15. Hello,I am trying to change the margin-left from 12px to 0px via the function setMarginLeft().I would just like to see it work before I actually put it to any good use.I am testing using IE8, but would like to finally end up with something thatwill work for most common browsers.I have been looking at many suggestions, but it just doesnt seem to do anything.Any thougnts?Thanks,RaneyA Div declared in the .html -------------------------------<DIV CLASS = "Page Area" ID = "Body"> Body Area<BR> Body Area<BR> Body Area<BR> Body Area<BR></DIV>The following are defined in the Application.css file:loaded in the <HEAD> of the .html<LINK REL = "StyleSheet" HREF = "Style/Application.css">----------------------------------------------------------.Page{ width: 980px;}.Area{ clear: both; float: none; position: absolute; overflow: hidden;}}#Body{ margin-left: 12px;} The following function is declared in the Application.js file:loaded in the <HEAD> of the .html<script SRC = "Script/Application.js"></SCRIPT>and called from the <BODY> of the .html<script>setMarginLeft()</SCRIPT> -----------------------------------------------------------function setMarginLeft() { element = document.getElementById("Body"); element.style.marginLeft = "0px";}
  16. Hello,I am trying to put an initializing display in a Google AppEngine Application.If I have only one HTML page the following removes the item after every thing loads.This is the only statement in my onModuleLoad: It works fine with only one page.DOM.removeChild(RootPanel.getBodyElement(), DOM.getElementById("Initializing")); When I add more pages it dies.I have added an ID to the page that contains the Initializing item.<BODY ID = "TESTING">DOM.removeChild(RootPanel.getBodyElement("TESTING"), DOM.getElementById("Initializing")); With the statemt above, it does not die, but it does not remove the Initializing item.Any suggestions would make my day.Thanks,Raney
  17. Hello,Is it possible to use a predefined Class within an ID.My.html<DIV ID=”Banner”> This is the text I would like as Times New Roman.</DIV>My.css.TimesNewRoman{ Font-Family: "Times New Roman", Times, Serif;}#Banner{ .TimesNewRoman;}I know that I can add the CLASS="TimesNewRoman" to the DIV in My.html, butI would like to do something like this.Thanks,Raney
  18. Thank you,I have checked out all of the suggestions.The documentation for all ofthese options on this site is great, just need to be pointed in the right direction.For what I need to do now I think this approach is the best.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html> <head> <title>Test</title> <link href="Test.css" rel="stylesheet" type="text/css" media="all" /> </head> <body id=test-body> <h1><script type="text/javascript"> document.write(document.title); </script> </h1> </body></html>Thanks,Raney
  19. Hello,Is it possible to use the value of the <title> in other places inthe document with out replacing.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>GWT Application</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link id="application-css" type="text/css" rel="stylesheet" href="Application.css"> <script type="application/javascript" src="application/application.nocache.js"> </script> </head> <body> <!-- How can I get the value of <title> to be used for the <h1> --> <!-- or any other place else that I would like to use it? --> <h1>I would like this to end up being:GWT Application</h1> <!-- I would like this to happen automagically, not replace. --> </body></html>Thanks,Raney
×
×
  • Create New...