I just implemented the given javascript code of this website. it works locally but published it does not. what can be the reason of this problem. sorry i am a complete beginner of web design and dont even know what information to include here..
I'm using a javascript quiz I copied from javascript.internet.com and it's not working right. I like what the quiz does (if it works right), so I want to try to make it work. When you click the button to get the results at the end of the quiz nothing happens.
I've been having problems with some simple(?) lines of code...
What I'm trying to do is to simply turn the canvas black and show a small gif on it. Upon executing initCnv(), the canvas turns black as it should, while the sprite image doesn't show up at all. I can't figure out what's going on, I scoured the code for syntax errors, even tried other image formats but to no avail. Image paths are also correct.
I'm trying to create a new portfolio website and I've setup the framework the way I'd like to have it. I have some slight animation through the use of jquery, but because I want to preserver that animation availability (on click) I'm needing to do the amateur thing and swap content out in a div - similar to if I were to use an iframe *shudders*.
When you come into the site, you click on a link, and the nav moves up, and the content window opens, displaying the content for the link selected. When you click on the other links, the content simply changes. This all works as of current. The problem is though, once that new content is loaded into the main content display div, the assigned js and/ or jquery does not work.
The page is live, and can be seen here if you click on the 'about' link, it shows the about page, but has all of the information expanded. If you look at the about page directly,[url] it has some light js that allows the headings of the resume to expand and contract - BUT it doesn't work when loaded into the content window. [code]...
I would like to access the create call back function. So far no luck. It appears the function is not getting executed. Any ideas where I may be going wrong? code...
I am trying to create a breadcrumb trail for a page on a site I am creating.
I have several divs - div1, div2, div3, div4 etc and I need to have the div title at the end. Here is my code, the problem I have is that var theTitle is returning null.
Code:
function breadcrumbs() { var output = "<a href="/">Home</a> > "; var output2 = " > "; for( var dnum = 1; dnum < 999999; ++dnum ) {
I am using the breadcrumb script from this website. it's the first one I've found that is working for me! I would like to know if it is possible to have the text that displays for the page be the name of the html document instead of the meta title (because they are too long). Is there a simple place within this code to get the script to pull the file name instead?
example: www.mywebsite/tweezers.html I want the breadcrumbs to be home > tweezers But it's giving me home > TDI Precision Tweezers | Electronics Assembly Tweezers | Lab Tweezers | Cleanroom Tweezers
In IE7/Windows the left vertical navbar disappears. I have used every hasLayout trick I know. Can anyone put a finger on it? I'm working with legacy code to complicate matters. code...
I am trying to do a setInterval to switch the background-image of a div. The switch will happen every second. Here is the html code...
On firefox 6 and IE9, it switches just fine. On IE8 and Chrome it switches once and then stops.
Not sure why it is working in the newer browsers and not the older ones. I know there were some new javascript features added to the newer browsers, but i cant figure out where the error is occurring.
I have a JS value but it won't put the value in the brackets when i try to get the element by ID instead it is looking for the id named the same as the variable name.
I am fairly new to javascript and am having trouble clearing a text field. I am making a "vending machine simulator" as an exercise. I have a button that is the coin return, and should clear the balance display. e.g the machine shows a balance of $2 inserted, the coin return button should clear it to 0.
I believe I have done everything correctly but get NaN as the output (a text field named "box1"). I believe it has something to do with how the field is validated. It has number precision set to 2, which I would think would just become 0.00 or something. Anyways, here is my code code...
I am really confused. I want to make a <p> tag hidden using javascript, and then, if i detect its running IE, i want to make it visible. I can't even make it hidden though. I have tried code... and I've tried both of these variations with the getElementById('warning') instead of plain old document.warning too. Nothing works. I've even tried setting display to none. What is going on?
This code runs prefect in FireFoc but IE7 will only process the first request. I remember reading something about IE of processing first respondText and if invalid character are in there it no not process any more. I am just passing plain HTML and rather using innerHTML because it seems earlier than using XML and i really don't see any benefit on using XML. is there any way i can get this to work nicely in IE?
It's not showing me the alert. I'm just trying to get that part to show it works. However, what I'm trying to do is add up the values in one and two and the based on adding those two up and then placing that total in the total field. Any ideas on how to do this?
I tried coding something quickly myself and was wondering why I couldn't hide a frame (one with a blue image, one with a red - simple test)
So I gave up and looked through google and found a simple tutorial at
I copied this code exactly into three files, the main html frameset and the two test frames.
Named properly etc etc, but I can't get the hidden frame to show up using the button. So is the functionality behind the scenes the problem here? Or is this some other issue?
I found a jQuery menu online which i have used but somewhere a long the line it stopped working properly without me noticing, been trying to fix it but cant work it out..
The original code is here...
When you hover over a menu item you get a drop down but you cant hover over the drop down without it disappearing!
I am using googles O3D software and it uses a javascript base, one of there plugins works in Firefox only and not Internet Explorer why it isnt working in IE and even how to fix it, here is the page that works in firefox but not IE