Can anyone recommend a good place for someone like myself to start learning about JavaScript and Java Applets? I know HTML, CSS, and a decent amount of Perl and PHP, but overall have VERY little experience with Java and JavaScripts, other than the usual cut-and-paste...
I am trying to create start and stop button in jquery slidesjs plugin i know i can not edit this plugin so i create a external function on my home page but only sop button is working and i am unable to make a start button
Code: <style> body { /*Remove below line to make bgimage NOT fixed*/ background-color:black; background-attachment:fixed; background-repeat: no-repeat; [Code]...
when i run it, i have to wait the 9000 timer to c the first image, and i need the page to start with an image and then start the rotation, i have assigned background-image by css, and tried also to use document.body.background, but when i do this the rotator doesnt work.
Im using Javascript to expand a unordered list menu and it works on my pc in the latest versions of Opera, Safari, Firefox and IE. But i have been told that the buttons do not work in Safari on a MAC. It does however work in IE on a MAC.
Is there a difference between the way Safari on a MAC would read the code? Code:
I am just finishing a site for a photographer which uses Flash for the interface, PHP to display a number of image thumbnails (4 scripts, depending on the route the visitor has chosen) and then 1 PHP page with lots of JavaScript to open the correct image in a new popup window.
It all works in the latest versions of NN & IE but the problem is that some of the site owners' clients use older browsers and the JavaScript popups are not working in NN 4.7.
The address of the developing site is here. The JavaScript that I am using is an adaptation of Anarchos' great script.
Are there fundamental things I am missing regarding NN 4.7 and JavaScript or would my scripting in JavaScript be wrong?
I have a Javascript redirect on pages inside my site (not the index page) because Netscape 4+ doesn't see the CSS properly. I'd tested it at home, and it worked fine. But now testing it on another computer, its not redirecting. Code:
I am using Regular Expressions and Javascript to validate a form, specifically I want to make sure that if they try to upload a file that it has a proper name w/ certain extensions (doc,pdf, rtf). The script works on IE and Mozilla but fails on Safari on the MacOSX. Here is my code..
// ok files with proper extension var reOKFiles = /^([a-zA-Z].*|[1-9].*).(doc|DOC|pdf|PDF|rtf|RTF)$/;
//where i check for the file... if(window.document.myForm.myDocument.value != ""){ var fileStr = window.document.myForm.myDocument.value; if(!reOKFiles.test(fileStr)){ alert("Please try again, you tried to upload an invalid file type for CRITERIA 1"); window.document.myForm.myDocument.focus(); return (false);
function showMenu() { for(i = 0; i < max; i++) { setTimeout("document.getElementById('contextlinks').getElementsByTagName('UL')[0].style.filter = 'alpha(opacity="+i+")'",100); } }
This is supposed to increment the alpha opacity of the UL inside the DIV contextlinks by 1% every 0.1 seconds (for a fade effect). However when the function is activated, the opacity is set directly to 100% rather than increasing bit by bit.
Looks fine in IE and Opera, but is designed to write into a textarea instead of the <div> if the brower is not IE4+ (why is it working in Opera?) so on Firefox you can see the ugly textarea....
Is there a way to either turn off the Javascript in Firefox so it doesn't work at all, or test specifically for that browser (it's not testing for anything but IE right now as I understand it) and put the text into an absolutely positioned element? Code:
I stumbled upon a strange behaviour of the XMLHttpRequest.. Maybe I'm just not well informed enough about its possibilities, so could someone please confirm my question?
When I put plain javscript in a file that is read-in through a XMLHttpRequest-object, it's like it is totally ignored. Eg. I have the file ajax_include.html with in it's body the following lines <script type="text/javascript" language="javascript"> alert('some alert'); </script>
when I directly surf to the file, the alert pops up as expected, but when I use a simple XMLHttpRequest to replace the contents of a div with the contents of this page, the alert is not popping up, although when I view the selection's source (Thank you, Firefox!), it is there!
When I place an anchor with an onclick-action (eg. alert('onclick')), it works when I click it. So my "conclusion" is that it seems like inline javascript commands are ignored (functions not recognized etc.). All actions assigned to other events work nice though.
Can someone confirm this strange behaviour? Or is it just normal with the use of an XMLHttpRequest opbject?
Problem: I have a piece of HTML-content, with <hr/> as section breaks. I want to replace the <hr/> with a new <div>. Thus, original: <div>Test test test<hr/>Test test test</div> Result: <div>Test test test </div<div>Test test test</div> With $('hr').replaceWith('</div><div>') it does not work, because the replacement is not valid HTML.
I want to create columns, with <hr/> the column-divider. Perhaps there is also a better solution. The editor is creating the content and inserting HR's where a new column should start.
I need to isolate some auto-generated content that is displayed after an end </a> tag, and before a start <div> tag. This text doesn't have any surrounding tags itself, so I need to add some kind of hook to it in order to style it with CSS.
I have tried to use insertAfter to put a <span> after the </a> tag, and then an insertBefore to put a </span> before the <div> tag, but this just results in putting both the start and end <span> tags before the bit of text I want to isolate.
I have been using JQuery from last 1 year with IBM RAD 7.0 as IDE and WebSphere 6.1 as app Server without any problem.Now my development environment is upgraded wtih IBM RAD 7.5 and WebSphere 7.0 server.After writing the code in jsp within <JavaScript> tags as [code]i am getting the following error.The function $(HTMLDocument) is undefined.I have included jquery-1.4.2.min.js and even replaced with jquery.min.js.But there is no use.
I am using the slideshow script below on my website and would like to know if it is possible to delay the start of the slideshow until at least the first image has fully downloaded.
I am trying to grab all text between <START> and <END> and have the following bits of code, but neither are returning anything. I use JS so rarely that I can't see where the problems are -
var ermtext = response.match(/<START>(.*?)<END>/i); if (ermtext) { result.ermtext = ermtext.replace("$1");
I am trying to stop and then start my clock, but something goes wrong
<script type="text/javascript"> function start_clock(){ var today = new Date(); var h = today.getHours(); var m = today.getMinutes(); var s = today.getSeconds(); [Code]...
Is there any sort of javascript code that can be linked with a button, for example, that when clicked would start up an Outlook 2003 session (if the user has this installed)
Otherwise return a page or message alerting the user they do not have Outlook Installed
I am making a local intranet you see, and i have configured an internal email system, so on the Intranet site i want to add a link to go directly to Microsoft Oulook, which should be installed on all the machines.
I need to add some animation effects and I'm experimenting with JQuery animate. The sample routine is set up to run when you click on the Run link. I want to change the routine to run automatically when the page is loaded.
<!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>
I have a working code already. It already has a play and pause button, but I do not have a working start button (it has to play it from the very start). Here is the code:
<html> <head> <script type="text/javascript"> var interval = 500; var random_display = 0; var number = 0; image = new Array(); image[number++] = new imageItem("1.jpg"); [Code]...
I am working on a website for my cousin and am by no means an expert, so I apologize ahead of time for what is probably a simple question.
I am using the following javascript to have a gallery with thumbnails:
With the corresponding HTML:
But apparently you cannot start an id with a numeric value, and I would like the page to validate. (I have since fixed the other validation errors, but I'm stuck with this one problem.) Is there someway to modify the javascript so that I can use letters instead of numbers?