Jump to content


  • Posts

  • Joined

  • Last visited

About Emerogork

  • Birthday 04/01/1947

Profile Information

  • Gender

Emerogork's Achievements


Newbie (1/7)



  1. This is a very difficult question to explain. Other approaches will be considered. If I posted the code/program, you would find it useless believe it or not. If you believe not then I will post it on your request and prove my point. (: The program I am using accepts code through a template and therefore is not, in itself executable code. The user calls for templates as needed. To see this in action, you would need a server with Moodle (Linux, Apache, PHP5, etc) running and have the Generico Filters plugin installed. If you do, and you understand the program, then I could send you the .txt file. Ok, so this has to be solved theoretically instead of practically. Here is the line of code that I can use to send the date called stopdate2a as an ID in a span used in the HTML program. (JS) document.getElementById("StartDA").innerHTML = stopdate2A; (HTML) <p>@@Message@@<span id="StartDA"> Stop Date </span></p> “Stop Date” gets replaced by the date in stopdate2a. It works fine if I am using only one template. The Javascript functions and the HTML page get called for each template and the StartDA span ID is in many separate instances of HTML therefore the use of <span id=StartDA></span> can be used. The problem is that the function in JS generates a new value of StartDA and each instance is to be used in a different location. At the moment, StartDA appears the same value everywhere. The problem is that it is to be unique. Since I presently need 25 templates I need to be able to identify each instance of StartDA. If I could send "StartDA" as a variable instead of text, I could use something like an array such as StartDA(X) and increment X as needed. I am sure that if I used document.getElementByclass("StartDA").innerHTML = stopdate2A; that I would have the same problem. I will leave it there for now to see if anyone can make any sense out of all this and see what questions/remedies are proposed.
  2. I have been running in circles on this. The web page is to list a few check boxes and when clicked, a sum total should be displayed with each click. [] 5 [] 7 [] 9 When 5 is checked then 5 is displayed. Then when 9 is checked, then 14 is to be displayed. Now if 5 is clicked again then 19 will be displayed. A reset button will clear all checked boxes but I have that coded already. I would rather not use an array but will consider it. This should be only Javascript.and HTML. Thanks
  3. AARGHHHH. After all that fine explanation, I realized how to do it. `<span id="Electronics"></span>` How cool is that?
  4. Although Name tag works, the validator chokes on it and I tried the suggested Section tag but it has too much baggage and ruins the image of my web page. Is there a replacement for Name? I have my glossary hyperlinked with `<a href="#Electronics"> Electronics </a>` and `<a name="Electronics"></a>` as the landing mark. It works perfectly because I can send the reader to the center of a paragraph when I need to. Apparently it is now obsolete. I finally found the method to use the Section tag. I still use the same `href` but have Section instead of Name. I tried `<section id="Electronics"/> but that did not validate. I tried `<section id="Electronics"></section> but the validator claims I need a header. I tried `<section id="Electronics"> </section> with a space and then with a period. Nope again. I then used `<section id="Electronics"><h6>.<h6></section>` and the validator accepted it. However but now my paragraph is all messed up. Not only is there a blank line in the middle of the paragraph but any css for font size is not the same after the Section tag. Is there any CSS to defeat all defaults of the Section tag?I tried `section { display: inline;}` in my Style section but that did not work either. After all this exploration, maybe ther is a better way. I have 148 of these entries to fix. This whole problem revolves around my need to send the reader to a location within a paragraph: mot to the beginning of one and not to the end of one and to do it without messing up the style of my web page. Thoughts appreciated......
  5. Originally called Black/White lettering, it allows letters to be seen clearly on multi-colored backgrounds such as sunsets. I would upload a pic but cannot see how to do it..... It is not an outline nor a shadow although MS Powerpoint claims it is a shadow. Imagine a letter of one color being set on top of the same leter, same size, of a contrasting color, but slightly offset on a diagonal.
  • Create New...