How To Start Working W/JavaScript
Aug 21, 2000
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...
View 4 Replies
ADVERTISEMENT
Jun 21, 2011
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]..
View 5 Replies
View Related
Dec 22, 2010
I have found this nice background rotator:
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.
View 3 Replies
View Related
Jan 24, 2007
I have a problem with some JavaScript code not working. I'm sure I've
done something obviously stupid, but I can't for the live of me figure
it out.
This is the XHTML document (stripped to the relevant parts):
View 12 Replies
View Related
Aug 15, 2007
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:
View 1 Replies
View Related
Jun 4, 2007
I have a DHTML menu that I created on a site that shows a submenu when you hover over the main navigation.
Everything seems to work fine except when you view the site in I.E. on a Mac. The subnavigation does not show up. Does anyone have any ideas?
View 5 Replies
View Related
May 21, 2002
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?
View 8 Replies
View Related
Jul 17, 2002
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:
View 3 Replies
View Related
Jul 23, 2005
I have a new (XP) version of IE, but when I click on links that are
javascript they do not seem to work and suggestings?
View 3 Replies
View Related
Mar 30, 2006
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);
View 6 Replies
View Related
Oct 11, 2005
var i = 0;
var max = 100;
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.
View 2 Replies
View Related
Feb 10, 2006
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:
View 2 Replies
View Related
Jun 9, 2006
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?
View 1 Replies
View Related
Mar 18, 2011
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.
View 1 Replies
View Related
Jun 25, 2011
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.
View 6 Replies
View Related
Feb 15, 2011
I created a progress bar with timer, every second = 1% in the progress bar. The problem is that the progress bar does not start.
This is the code I use:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
[Code].....
View 6 Replies
View Related
Apr 4, 2011
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.
View 4 Replies
View Related
May 5, 2009
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.
View 4 Replies
View Related
May 12, 2009
I need to get and set the selection cursor place, like selectionStart in firefox and safari. how do I do that?
View 2 Replies
View Related
Jun 23, 2010
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");
[code]....
View 4 Replies
View Related
Jan 3, 2011
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]...
View 6 Replies
View Related
Feb 27, 2006
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.
View 1 Replies
View Related
Dec 11, 2009
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>
[Code]....
View 4 Replies
View Related
Mar 5, 2009
how to start notepad in javascript with onmousedown
View 4 Replies
View Related
Jan 2, 2011
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]...
View 1 Replies
View Related
Oct 19, 2010
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?
View 2 Replies
View Related