I have been using this code for a while and it seems to work but i don’t think it is 100% infallible. It is used to stop robots from submitting your contact forms, or any kind of forms really. The code can be found at
:-
I often use this code to toggle the visibility of a HTML element on the page. It is especially useful with forms and showing different option depending on what the user selects. Here is the code:-
function ToggleVis(element){var Target=document.getElementById(element);if(Target.style.display==""){
Target.style.display="none";}else{
Target.style.display="";}}
In the IWebBiz CMS individual content objects may need their own javascript code to process them. So I load each individual javascript file as needed. The code to do this is:-
function dhtmlLoadScript(url){var e = document.createElement("script");
e.src= url;
e.type="text/javascript";
document.getElementsByTagName("head")[0].appendChild(e);}
I recently had a website that needed scrolling pictures from the right to the left. It was a photo album and it achieved this with a marquee tag. I also wanted to increase the speed of the scrolling via javascript so if the users went back to the page it would be simple to scroll back to the point they left at. Here is the code:-
Hello there, we have had a PHPBB website for over a year now but it has been plagued with spammers and hackers so i have decided to start anew with a blog. Wordpress seemed the logical system to use as i have had some experience with it so here we are. I will be transferring the posts from the old site into this new one and writing new articles in here and not in the old site. Commenting will have members strictly verified as the old site i was spending more time deleting links to nude jennifer anderston than writing about programming.