When I click on one of the ul items the page stays where it is. However when i click another one the page then shoots to the top. I have read around and some people say do the following
However this still sends the page to the top.
If any body knows any tips/tricks as to how to solve this it would be mighty helpful.
ie8 is really strict, so it was a matter of dotting the i's and crossing the t's.
If you make a small mistake, there is no warning, so like on the span tag, it's innerText and not innerHtml.
On tableRow's, it's insertRow(-1),
and on tablecell's it's insertCell(-1)
Well after hours of reading last night, I found out that I'm running IE7, even though it's IE8 on XP and Server 2003. I also learned that IE7 and IE8 have there own version of creating html markup using createElement and appendChild.
So it's a matter of learning which properties work in both Gecko based browsers and IE, and which don't. It's sort of like VHS and Beta, they look the same, but are different.
I tried testing for createElement, to see if the DOM created it, by adding an ID to the element, and going back and checking the value, to maintain 1 version, but the element was created and an ID was assigned anyway on both.
So for now, I just did a browser check, and switch between the 2 versions.
This code ALL works apart from the onclick function, all I wanted to do is when the cell is clicked for example an alert message pops up.
Hopefully that makes sense and if anybody can help that would be helpful
var cell_1 = document.createElement("td");
cell_1.style.textAlign = "center";
var link = document.createElement("a");
That way, you get the usual link semantics (underlining, colour cues, cursor, tab order entry).
// +++++ attach even
// X00 pointer of object with event
// X01 kind of event, string e.g. 'mouseover'
// X02 pointer of event handler
// e.g. keyDownTextField (e)
// var keyCode = e.keyCode;
// X03 false bubbling event allowed
// true bubbling event not allowed: Capturing of event thru handler
// must be identical with avent deatch
// returns true if event attched
I'm a little problem with my javacsript ...
I have an input to the value date of the calendar, and have a + button that the function of this value and add more inputs to add more dates, so that when I insert more dates so these dates are entered in the first label and not in others that I called with the button + ...
Can someone help me solve this problem?
I have done some research on the net but not getting success, picked up some calendars to make changes but also without much success.
someone help me please!!!
I'm tryna create a dynamic calendar, which the User may select any one day and that day is selected with a different color and it can include notes. I managed to make one, but it was static and this schedule must have type arrows to see other months, you know?
Sorry, but I have no clue what you want.
As far as I understood you want:
1. A calendar control
2. When date is selected in the calendar tool, that date is "highlighted"
3. When date is selected a note or message is given to the user.
ok I have an assignment to make a page with an object moving diagonally and another one moving vertically. I have no problem getting the object move horizontal but am having a problem with the diagonal and vertical. Can anyone help me with the code? This is what I have for the horizontal: