I was wondering if there was an easy way to configure a message box to resemble that of a login form.It would preferably have two text fields for username/password and OK and Cancel buttons as well.I currently have a normal login form on my website designed using PHP but it does not figure into what we need to do now. I'm not sure about going about this and I have tried looking for quite sometime for an example of this but cannot find one.
I wanted to see if it would be possible to create an effect similar to a flash effect on a website. If you visit parkwoodonline.org and scroll down to the bottom, you will notice the little clover on the left hand side. If you hover over it, it fades in "made by clover" with a clickable link. If you move the mouse, it fades back into the clover. Would an animation like this be possible using jQuery? If so, how would I go about doing it?
Basically, I have a bunch of checkboxes (around 20) that are preferences for a user profile (that I am writing in PHP). I want to have be able to select an option from a dropdown combo box that automatically selects typical configurations. So if you select an option from the dropdown box, it will select/deselect the appropriate checkboxes with javascript.
I scripted a javascript guessing game and I am not sure how I can configure the random number generator to only generate one number and then stop.code...
I've decided to use the drag and drop option for my gadgets in my home page. The size of the gadgets may vary and user may choose the gadgets and choose the place too. Is there any api or libraries which I can easily configure the drag and drop option in js and php.
I know this has to be easy, but I can't seem to figure it out. I'm debuggin' someone elses code...
x="hello"; +x+"world"
....and I don't get it! What does the "+x+"world" do? If I alert(x) the only thing that comes out is "hello". I also wondered why it doesn't error without the ";" at the end of the line.
This is a novice question, but I'm stumped. I have a variable with a bunch of text assigned to it. Now I want to email the value of the variable. I have a simple form that asks for their name and emails that, but how do I add the variable result?
I know nothing of js yet, I'm still studying CSS & PHP. So I'm just looking for a ready made script for vertical scrolling. I found one that does exactly that, but all the css styling is done in the javascipt, so I was completely lost. I want to be able to just enter the html (into the js array if neccessary, I can do that much lol) and have it scroll upwards, simple as that. The nearest thing I could find to what I want is this Creating a vertical content scroller using DHTML I can style my div & images myself, then all I need to do is enter the html and away it goes, but it functions just like the marquee tag in that it waits for the entire content to clear before it starts scrolling again.
How do I add blank space as acceptable in this expression?
//checks for numbers, - or space only function checkPhone(frm,fld){ obj = eval("window.document."+frm+"."+fld); tstval = obj.value; re = /^[0-9-]+$/; if(!tstval.match(re)) { alert("Numbers or dashes only please."); obj.focus(); return false; } else { return true; } }
Form validation using JavaScript has never been as easy and simple! We have developed a free generic form validation script that can validate any form with very little JavaScript required in form!
Is there a way to change a javascript's output on a website without directly manipulating the source code? Just by entering some info in a form, then hitting submit. Then it automatically changes the content of a website.
What I want to happen is to change some text (specifically a news ticker) on my javascript, located in between the head tags, just by inputting new information on a form which automatically replaces the old one.
I'm kind of new to js, I wanted to write some non english chars inside an array, and it only seems to work if I write unicode notation, e.g. "u1234" per char. I was wondering if there is some easier way to do this, maybe somehow specify to the browser that the js file is utf8-encoded or something similar, but I'm not sure how to do that.
I have inserted the easy slider code into my web page to make a sliding gallery. I attempted to modify the code so that numeric navigation AND arrow navigation (next, previous) could toggle slides BUT I can't see the number navigation in IE6. Every other browser I have tested (mac Safari, Firefox, and Google Chrome as well as IE7,8) work perfectly. Since I modified the original, I assume the error is in my javascript code OR in my CSS.Here is the Javascript:
I need to make a website that will be used as a traffic light system. So i will have a page with loads of divs starting red, that will change to green when clicked once, and back to red if clicked again, so on, so on. These changes will need to be viewable live on another computer, so changes need to save and will also need to automatically refresh without distrubing the rest of the page.
The code is supposed to generate this: PS: This is generated by a PHP Function that the Ajax Load Method Calls.
[Code]...
I've been noticing a lot of problems when loading these stuff, Sometimes I have to remake the HTML Tags because its not showing anything. Is there any option? I want it to load EXACTLY how it is, I don't know if this is some kind of protection for bad code, but if it is I would like to disable. But also, this code is really clean. no problem, I don't know.
I am new to Jquery and am having trouble. I want a button on a modal form to open up another modal form but for some reason it isn't happening. The code below is basically the code from the jquery user interface demo, slightly modified. can anyone tell me what I am doing wrong? if your kind enough to take a look at my problem make sure you change the src's where the JQuery files are!
Code: <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
I have a page that generates content in a <tbody></tbody> dynamically.
The thing is if there is about 167 or so records it takes some time to render them so I put a tag like:
<div id="str_status"> </div>
and in my js I have
function blah() { document.getElementById("srt_status").innerHTML = "rendering"; .. .. ..some code here that takes a bit of time .. .. document.getElementById("srt_status").innerHTML = ""; }
Problem is I never see the "rendering" ..... Looks like it renders all at once and is not updating as the steps occur.
I'm using an ActiveX control in my html page.. Each time i load the page ie pops a message box to allow the activex to run or not . Is there any way to handle that message box using javascript. Or is there any other way to avoid that message box because each time the page loads i have to give yes and then proceed. By default i've to give yes is there any way to handle that using javascript.