Jump to content

A_tom

Members
  • Posts

    42
  • Joined

  • Last visited

A_tom's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Ok, that worked. Thanks. I will proceed with getting some redesigned menu code.
  2. What happens why you try to visit the site?
  3. I have used the same html code (self developer/amateur - siftradingsytems.com) for the past ten years. I've just noticed that I am getting a 404 error code message overlay when I mouse over my menu, which you can see from the image. Everything works as it always has. If I select an item from the menu it navigates to it as it always has. I'm trying to figure out the cause of the errant 404 error message. The only changes to my website have been that I asked the webhost company (Hostgator) to provide a security certificate, which they did. The menu uses some javascript that I got from DynamicDrive.com (ddlevelsmenu.js). Hostgator, says it's a script problem. I'm looking for a little guidance on how to fix this.
  4. I have a website http://www.siftradingsystems.com/ I would like to devote one page to some comments which would come to the page in the form of a small text file uploaded from my desktop. The page would be scrollable and each added comment would appear in its own window. I simply want the web page to grab the uploaded text files and display them sequentially without my having to do anything other than create the original text file and put it where it can be uploaded. Can someone please point me in the right direction. Thanks for any advice.
  5. Right, I was planning on it being a cron job. I was mainly concerned about figuring out what the php script would look like.
  6. On my home network, I have a computer that is uploading data to my website. One file being uploaded is just the date and time, and this happens about once every five minutes. I wish to create a php script that will test this file and send me an email when the file is no longer updating. This will tell me when my home computer has lost internet connectivity or has stopped working. There seems to be plenty of examples of php script that would do the file test. How do I get the script to execute on a timer?
  7. Thanks for your comments. I will try using jquery again and come back if I can't get it to work. Where was the comma supposed to be? Nevermind, I finally got it to work. Here is my test page: http://www.siftradingsystems.com/LightBoxTest.html
  8. After much frustration, I have finally wandered into something that looks like what I wanted. http://www.siftradingsystems.com/P15C3.html Let me just say that cookies are not a piece of cake...
  9. I have been experimenting with a lightbox and it works well enough. http://www.siftradingsystems.com/P15C2.html However, I need to turn this off for some period of time some the user is not repeatedly confronted with the disclaimer. For this I would seem to need to use a cookie, but I cannot get the jquery.cookie plugin to do anything. Here is some test code I've been working with. Any reference at all to $.cookie causes nothing to happen. <!doctype html><html><head><meta charset="utf-8"><title>Lightbox 2</title><meta name="description" lang="en" content="testing" /><meta name="author" content="Lokesh Dhakar"><meta name="viewport" content="width=device-width"><link rel="shortcut icon" type="image/ico" href="images/favicon.gif" /> <link rel="stylesheet" href="css/screen.css" type="text/css" media="screen" /><link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" /><script src="http://code.jquery.com/jquery-latest.js"></script> <script src="/js/jquery.cookie.js"></script> <script src="/js/lightbox.js"></script><script>if(typeof $.cookie('Cookie1') === 'undefined'){//if (1 == 1){ //no cookie $('document').ready(function(){$('#ele_id').trigger('click');var date = new Date();date.setTime(date.getTime() + (5 * 1 * 1000));$.cookie('Cookie1', 'Kooky'{ expires: date }); });} //} else {// have cookie, do nothing// alert($.cookie('Cookie1'));//}</script></head><body><a id ="ele_id" href="img/Disclaimer.png" rel="lightbox" data-title="Disclaimer"></a><p>This is a test page.</p></body></html>
  10. I found this code which would appear to do what I want, except (in my browser, at least) the disclaimer page is blocked by my adblocker. How does one avoid this? The other problem is that the popup blocker can completely defeat the purpose of the cookie code? How does one get around that? <script>function getCookie(NameOfCookie){ if (document.cookie.length > 0) { begin = document.cookie.indexOf(NameOfCookie+"="); if (begin != -1) { begin += NameOfCookie.length+1; end = document.cookie.indexOf(";", begin); if (end == -1) end = document.cookie.length; return unescape(document.cookie.substring(begin, end)); } } return null;}function setCookie(NameOfCookie, value, expiredays) {var ExpireDate = new Date ();ExpireDate.setTime(ExpireDate.getTime() + (360)); document.cookie = NameOfCookie + "=" + escape(value) + ((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());}function delCookie (NameOfCookie) { if (getCookie(NameOfCookie)) { document.cookie = NameOfCookie + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; }}function DoTheCookieStuff(){ visited=getCookie('visited'); if (visited==null) {setCookie('visited','yes',365)MyWindow=window.open('Disclaimer.html'); }}</script>
  11. I think the best would be to have the user only have to acknowledge the disclaimer once. I am sure there are examples of this here and other places, but in searching, I have been unable find what I'm looking for.
  12. I am somewhat familiar and when given some example code, I can usually adapt it to my needs. I'm just looking for an example of how to do it.The disclaimer I want people to have to see is about 250 words, so I need something that looks more like a web page than just a simple text box with a button.
  13. I need to create disclaimer message which will require the user to click on a button to gain access to a specific web page. Please point me in the general direction of how to do this.
  14. This code runs ok in Chrome and IE, but not Firefox. How to fix? <!DOCTYPE html><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" id="viewport" content="target-densitydpi=high-dpi,initial-scale=1.0,user-scalable=no" /> <title>Document Title</title> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js"></script> <script type="text/javascript">$(function(){ //option 1 insertme('LineChart'); }); function insertme(ref) {//this can be placed in external js file var join = ""; join += '<object type="application/x-shockwave-flash" width="500" height="300">'; join += '<param name="movie" value="../FusionCharts/Line.swf" />'; join += '<param name="FlashVars" value="&dataURL=clientFTP/' + ref + 'MoTrnd.xml&chartWidth=500&chartHeight=300">'; join += '<param name="quality" value="high" />'; join += '<embed src="../FusionCharts/Line.swf" flashVars="&dataURL=clientFTP/' + ref + 'MoTrnd.xml&chartWidth=500&chartHeight=300" quality="high" width="500" height="300" id="Line" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'; join += '</object>'; $('#dumphere').append(join); } </script> <style type="text/css"> </style> </head> <body> <h1>The chart goes here</h1> <div id="dumphere"> <!--<script> ///option 2 - just remove comment tags insertme('LineChart'); </script>--> </div> </body></html>
×
×
  • Create New...