Jump to content

jayson

Members
  • Posts

    634
  • Joined

  • Last visited

Everything posted by jayson

  1. Ok, here is an example in the first part of the .html page <HEAD> <TITLE></TITLE> <script type="text/javascript" src="layout.js"> </script> <link rel="stylesheet" type="text/css" href="layout.css" /> </HEAD> then open notebook and add this: #dropmenudiv{ position:absolute; border:1px solid black; border-bottom-width: 0; font:normal 12px Verdana; line-height:18px; z-index:100; } #dropmenudiv a{ width: 100%; display: block; text-indent: 3px; border-bottom: 1px solid black; padding: 1px 0; text-decoration: none; font-weight: bold; } #dropmenudiv a:hover{ /*hover background color*/ background-color: #f5fff3; } a:link {color: green} a:visited {color: lime} a:hover {color: black} a:active {color: gray} save it as layout.css then take the notebook and start a new file, and add this: /*********************************************** * AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ //Contents for PROGRAMS menu var menu1=new Array() menu1[0]='<a href="communication.html">Communication Training</a>' menu1[1]='<a href="custservice.html">Customer Service</a>' menu1[2]='<a href="diversity.html">Diversity Training</a>' menu1[3]='<a href="english.html">English Skills</a>' menu1[4]='<a href="silent.html">Silent Power</a>' menu1[5]='<a href="team.html">Team Building</a>' menu1[6]='<a href="train.html">Train the Trainer</a>' menu1[7]='<a href="warrior.html">Warrior Mindset</a>' //Contents for menu 2, and so on - MAY NOT USE THIS ONE var menu2=new Array() menu2[0]='<a href="http://cnn.com">CNN</a>' menu2[1]='<a href="http://msnbc.com">MSNBC</a>' menu2[2]='<a href="http://news.bbc.co.uk">BBC News</a>' var menuwidth='165px' //default menu width var menubgcolor='white' //menu bgcolor var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds) var hidemenu_onclick="yes" //hide menu when user clicks within menu? /////No further editting needed var ie4=document.all var ns6=document.getElementById&&!document.all if (ie4||ns6) document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>') function getposOffset(what, offsettype){ var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop; var parentEl=what.offsetParent; while (parentEl!=null){ totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop; parentEl=parentEl.offsetParent; } return totaloffset; } function showhide(obj, e, visible, hidden, menuwidth){ if (ie4||ns6) dropmenuobj.style.left=dropmenuobj.style.top=-500 if (menuwidth!=""){ dropmenuobj.widthobj=dropmenuobj.style dropmenuobj.widthobj.width=menuwidth } if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover") obj.visibility=visible else if (e.type=="click") obj.visibility=hidden } function iecompattest(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body } function clearbrowseredge(obj, whichedge){ var edgeoffset=0 if (whichedge=="rightedge"){ var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15 dropmenuobj.contentmeasure=dropmenuobj.offsetWidth if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure) edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth } else{ var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18 dropmenuobj.contentmeasure=dropmenuobj.offsetHeight if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up? edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge } } return edgeoffset } function populatemenu(what){ if (ie4||ns6) dropmenuobj.innerHTML=what.join("") } function dropdownmenu(obj, e, menucontents, menuwidth){ if (window.event) event.cancelBubble=true else if (e.stopPropagation) e.stopPropagation() clearhidemenu() dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv populatemenu(menucontents) if (ie4||ns6){ showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth) dropmenuobj.x=getposOffset(obj, "left") dropmenuobj.y=getposOffset(obj, "top") dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px" dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px" } return clickreturnvalue() } function clickreturnvalue(){ if (ie4||ns6) return false else return true } function contains_ns6(a, { while (b.parentNode) if ((b = b.parentNode) == a) return true; return false; } function dynamichide(e){ if (ie4&&!dropmenuobj.contains(e.toElement)) delayhidemenu() else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget)) delayhidemenu() } function hidemenu(e){ if (typeof dropmenuobj!="undefined"){ if (ie4||ns6) dropmenuobj.style.visibility="hidden" } } function delayhidemenu(){ if (ie4||ns6) delayhide=setTimeout("hidemenu()",disappeardelay) } function clearhidemenu(){ if (typeof delayhide!="undefined") clearTimeout(delayhide) } if (hidemenu_onclick=="yes") document.onclick=hidemenu save it as layout.js this way you casn have all your javascript (.js) and styling of the page (.css) out side of the .html page, I did that, and my page went from about 50 lines of code to about 10. faster load time. I run it this way on www.jaysarahandy.com/aftindex.html (or htm) <<<can never remember how I save it. I have a aft.js and aft.css otherwise I would havde close to 150 .lines of code. does this make sense? Just tying to contrib. my knowledge.
  2. I run 2 (well really 4) websites, I can use front page on all but one. it is www.mnfamilyrights.us, when I try to set it up, it tells me that the folder is inexssable. Now is the problem because of the .us, or is there another reason. Thanks
  3. Sorry, Bruce, I forgot that there is a level above the public_html
  4. The backup I believe is in the public_html folder
  5. cars
  6. what bruce said about the hdr, expand the heights another 100px and you should be good to go I would also suggest putting the style coding in a external CSS page, I fid it is easier to edit. But what ever makes you happy, looks good except for the header
  7. I am going to ask a totally stupid question, what is wordpress, mainly what does it do. sorry, but until I came here, I never heard of wordpress
  8. (for the) Holidays
  9. I am playing with macromedia flash, is there a nice small step-by-step tutorial to learn flash? What I am looking for, is a site that has something like: "you can do this to your site" *flash example* no to create this here are the steps: 1 2 3 ect. I want a step by step help tutoral to see if I want to tackle this or stay away from it. Thanks
  10. Bob (squarepants)
  11. First of all, thanks for a wonderful site, now to a weird question, I will be addeing pictures to my site, what I want to know (it is pictures of my son) what I want to know, is it possible to make the site searchable. example. I have ( just an example) 300 pictures of my son, me and wife, someone can go to my site, to the picture gallery, and type in say, (andy (sons name) sarah *mom* (wifes name) and only the picture that have andy-mom-sarah will be shown or links provided, I at the moment run coppermine, and the amount of time I have to put into the adding of the pictures are taking it;s toll on me. Thanks
  12. bath
  13. (from Jayson and)family
  14. (out of) work
  15. thanks, did that right after them post..
  16. Ok, enough is enough, now I get the: Forbidden You don't have permission to access /index.html on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. when I try to go to my home page. what can the problem be, I am not sure if I should open a trouble ticked or not
  17. cable modem, 3megs a sec (going to 4 or 6 soon)
  18. did that no good, so I removed it all from the server, maybe the program just does lke me oh well, sign
  19. Thanks to all that put up with me, for whatever reason, I am unable to install SMF, I downloaded the program from the link that Bruce supplied, same results, so I will be removoning it from the server..
  20. yea, I DLed the zip file awhile back, I will DL the .tar file and give that a go, could be that the zip file is missing a program or is corrupt
  21. bingo!!!!!! you win the golden egg.. That is the error I get, now I downloaded the .zip, should I download the .tar instead?
  22. ok, go to forum user (master) password (blaster) go to admin>manage board> and either modify or add board both give me the error
  23. yea, the link works, no problems there, but if you try to make a board on the forum, that is where the error is, I can provide you ( one of the TCH staff only) access to admin area, and you can see for yourself, or it is just me
  24. Welcome!! I get: Index of / then all the files names
  25. my settings Forum URL http://www.jaysarahandy.com/forum SMF Directory /home/jaysarah/public_html/forum Sources Directory /home/jaysarah/public_html/forum/Sources I am just going to have to accept that it just will not work for me, I am doing this for a school, so after they look at it (if/when it works for me) they will be getting thier own site and then go to do this all over again.
×
×
  • Create New...