I have since lost the username for ftp access to the site and remade it with paid hosting instead of free hosting, with my own domain name and everything the old site was number 2 for searching for patrick allard on google, but the new site is far down the list [URL]. I've tried contacting the free hosting provider, trying to get him to delete the site or relink it, but no avail.
I am using javascript to create a table-ish layout, I am using the following function to resize the 'cells' within a 'row'. It is layed out such that there is an 'insert cell' at each end to drop new 'cells' into as well as an 'insert cell' between each 'data cell'.
Each 'insert cell' is only 1.25% wide and the function should resize the 'data cells' evenly; it does change the width attribute when viewed with firefox's DOM inspector but doesn't actually render as a different width. Here is the function:
function resizeCells(row){ var datacells=(row.childNodes.length-1)/2; var insertcells=datacells+1; var insertcellstotal=insertcells*1.25; var datacellstotal=100-insertcellstotal; var datacellwidth=datacellstotal/datacells; var cells=row.childNodes; for(var cell=1 ; cell < cells.length ; cell+=2 ){ cells[cell].setAttribute('width',datacellwidth + '%');
I have clear text, without html code. (in text area) and I want to take from this text numbers for every pertes. but, from attaquant is one var and for defenseur is second var, (every next line is own var too). But I don't know how to take this numbers,(in every next text like this, numbers is different).
This is text which I working on. Round : 1 Attaquant Serenity SR6 Total : 1 | Pertes : 0 (0%)
I'm developing a site in HTML 5 and SVG, just for the heck of it. I have a portion of the site that uses the <embed> tag to load a new SVG when you change pages, which, in theory, would let me do effects between pages. However, no matter what I try, there is a white flash as the new SVG is loaded into the page. So, I figured I would make the embedded area invisible until it loaded, which was no big deal. But when I tried it, the flash still happened! So, I built a pause function to wait a bit longer. It sill flashes. Anyway, 7 hours later, I've determined that the newly embedded page isn't actually being downloaded and embedded until the end of the changePage() function is reached.
Here's my java script:
var close1; var close2; var bar; var svgLoaded = false;
I am trying to dynamically close a div overlay. I have an x that dynamically appears, then closes when the user presses it. I want the overlay to also close when the user clicks the close button. So far I've tried to bind the click event to my button but its not working.
CSS: div#testbutton{} HTML <a href="#" id="testbutton"><img id="testbutton" class="close" src="/images/common/button-close.gif"/></a>
I have a web app which allows users to select multiple items from a select tag. I then call a JS function on submit which collects all the options they've selected and then adds them to the value attribute of a hidden input. The options selected are then used at a later time. This works fine on IE and Firefox, but both Chrome and Safari for not adding the selected values to the value attribute of the hidden input. Are there any JS issues for Chrome and Safari that could be responsible for this?
I am having some trouble with my code in that I am trying to take the value from the date of birth field and check to see if over 18 years old. I they are not over 18, a window.alert dialog box pops up to tell them. Below is the check if 18 validation.
Script section in the document head:
//check if over 18 function overAge(){ var age;
[code]....
Code for body section:
Date of Birth: <br/> <input type = "text" name = "date" value = "(mm/dd/yyyy)"/>
I'm getting a value from the database either true/false. I have a alert box that shows it being true/false. I want a checkbox to be checked if true else not. Here is the line of code that I have and it just automatically checks everytime, which I obviously don't want.
I've been stepping back and trying to understand basic ajax calls again. I want to build up a simple gallery. I've got that done, but now I want to add fades, and eventually slides effects to the main image. I can't figure out how to coordindate the timing or a fadeOut on the current image with a fadein on the incoming image. Any thoughts? Right now it just fades and the of course gets hidden.Also not sure if I should fade a container around the image, or the image itself as I've done here,
I have a form on a web page, with one field to enter a code, to search for a property.On clicking 'submit' I want to be able to run a script asynchronously in the background.The script will need to run a MYSQL statement which will have one of these results:
1. The property code does not exist, so display a Javascript Alert saying it does not exist.
2. The property is for sale, so call an existing javscript function 'saleSubmit(propertyCode)' to overwrite the exsiting web page with a new page sale.php for that property code
3. The property is for rent, so call an existing javscript function 'rentSubmit(propertyCode)' to overwrite the exsiting web page with a new page rent.php for that property code
My slills are in PHP and MySQL and I have no knowledge of tools like Ajax, jQuery and I am currently having problems getting my head around it. I have spent ages visiting lots of websites looking for examples on how to do this with little success.
why does this work under FF and only ONCE in IE but the problem remains the same as the firefox only code crashed IE's javascript.so it works only once still.SOLUTION -> changed event from onchange to onclick for my checkbox calling that function !
I am trying to make an order form I am working on accessible for users who have javascript turned off in their browser, and to do this I would like to hide a div if JS is disabled.
Searching the Web has led me to think that styling the div to not display is the way forward and then using JS to display it. It is the JS bit I am struggling with! The div in question is a set of radio buttons to allow a purchaser to choose how many gift memberships they want to buy:
<div id="giftmember-buttons" style="display:none";> <h2 class="threepeaksform">How many gift memberships do you wish to purchase?</h2> <fieldset class="threepeaksform"> <legend>Please select the number of people you are buying a gift membership for using the buttons below.</legend> <div class="generalcontactform-group">
What I'm trying to do just doesn't seem like it should be that difficult but I'm sure struggling with lacking skills I should say. I'm trying to automatically scroll a div up and down. For say if div.scrollTop = 0 then scroll to the bottom once it reaches the bottom scroll back up and so forth not stopping in a loop with say a timeout of 10.. Just need help putting it all together.
I've figured some stuff out: I can tell if I'm at the bottom of the scrollable area with: (document.getElementById(id).clientHeight + document.getElementById(id).scrollTop) - document.getElementById(id).scrollHeight
I'm trying to create a test using Javascript. Actually, I did this in PHP, but we need to put it a server that does nor run it, I think I can convert it to Javascript. I hope it'll be work as in PHP somehow. Test will be composed of 15 questions and each question has either "Yes" or "No" as answer. And, I use radio buttons here for answers. By the way, there will be more than one radio groups. Now, I want to check the value of clicked radio button in each group and use an if-statement to determine if it's correct. And, if it's correct, I want to increment a variable by 1. Finally, by the resulted variable incremented for each question in the test, I want to use another if-statement to show specific result message for and interval of that variable.
I'm new to javascript, and i'm having a problem. I want a button, which functions as a toggle, but also as a mouseover. When you click, under the button, a div opens with text. And when you mouse over, a shadow appears behind the button.I have two pieces of javascript, but i want both in my button. Can anybody help me?
I'm trying to add watch() to IE, and have more or less working code:[code]That works until I try to use setInterval with the code in red color. I never really tried OOP or prototyping in JS, so my whole approach to the problem might be wrong, but anyway, I think that if I execute that code in red every 100ms [for example], I'll be able to catch changes to properties on which the method is registered. Well, either my idea is wrong, or the execution.Some parts are commented out and method name is changed so that I could work in peace in FF.
I'm looking for a lightbox that allows me to have 3 lines of captions. Line one would be the art title, line two would be art dimensions, and line three would be media used. Would someone point me in the right direction? I have a lightbox that supports multiple lines, but doesn't allow for line breaks in the caption.
New to JS, and not too good at it. Trying to take some prewritten code and add script that displays some random text. Having trouble with assignment. Instructions are to replace a section of the file I am given with a script element. In the script element I am suppose to declare a variable named tipNum equal to a random integer between 1 and 10 returned by the randInt() function (which I made and have shown below). Then I am suppose to use a series of document.write() methods to write the following HTML code into the page:
<h1>Random Tip<br />title</h1> <p>tip</p>
(Where "title" is the title of the random text as generated by the tipTitle() function from a external file, and which I did not make; and "tip" is the text of the random tip as genereated by the tipText() function, which is also from the external file, and not made by me) My code for the randInt() function is
function randInt(lower, upper) { var size = ++(upper - lower); var randValue = Math.floor(lower + size*Math.random()); }
The script I made to display the HTML code is
[Code]...
I am getting nothing on my page where the random text should be.