Jump to content

RRRSystems

Members
  • Posts

    19
  • Joined

  • Last visited

RRRSystems's Achievements

Newbie

Newbie (1/7)

0

Reputation

  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. 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
×
×
  • Create New...