- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 12
- Posts with Upvotes
- 10
- Upvoting Members
- 10
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I am a freelance web developer from Oldham in the UK. I am married and have a beautiful daughter.
| |
Re: might just be that the images need to be optimised for the web. you could add a small delay setTimeout(function(){ startSlideShow(ob); },2000); added delay of 2 seconds but you would need to change this to whatever you feel is right. | |
Re: i was just looking in dev tools in chrome. it looks like 2 absolutely positioned divs side by side with each img as a fixed bg img. then testing where mouse pos is in relation to whichever side, the div's left/right position and width are animated. so if on the … | |
Re: As it stands you don't put the ids in the labels.Or anywhere on the formfor that matter. you could add two extra hidden labels on the form where you store the ids and them pull their text into the parameters | |
Re: Hi. In the example you give there is a combination of the javascript scroll event to test against the Id of a section compared to the scrollTop. this then actually does a "redirect". I put this in speach marks because the seems to stay the same but is using server … | |
Re: on line 39 is $name in that string a php variable? if so should it not be var parameters="char=<?php echo $name; ?>" | |
Re: Could you not use an unordered list? Seems to suit the situation better | |
Re: Text boxes and buttons are fully customisable with CSS. You can set background images, change borders etc | |
Re: Is the wrapper the white rectangle at the back? If so add float:left to it's css | |
Re: line 29 has var remarksbox = document.getElementById('Remarks').value; but then after that you're doing remarksbox.value = effectivly that translates as remarksbox.value.value = change line 29 to: var remarksbox = document.getElementById('Remarks'); | |
Re: use keyup instead of keypress. just tried it and it worked better. $('#txtbox').keyup(function() { var textLen = $(this).val().length; var textLeft = parseInt($(this).attr("maxlength")) - textLen; $('#charCount').text( textLeft + ' character' + (textLeft == 1 ? '' : 's') + ' left' ); }); $('#txtbox').keyup(); I added the maxlength attibute to your … | |
Re: do you mean you want to count how many dropdowns have a selection at all? | |
Re: looking at the source, you have forgotten to close the last script tag. Also. the callback function on your json function seems to be doing alot of document.writes. maybe pick an elementbyid and use innerHTML += instead of document.write. the only reason I say this is because when I view … | |
Re: try using parent.window.open | |
Re: are there any errors in your console? | |
Re: just need use AJAX. Do a quick search if you're not familiar with it. you would get the dynamic variables with an ajax call and then update the image in your javascript onclick event. | |
I recently undertook a development job where i needed to create a music player. We decided that the music should be managed from soundcloud.com (let them deal with the storage band width). There was one problem. to make it work in ALL modern browsers there needed to be be at … | |
Re: Hi. I had to rem-make it all together to get what I think you wanted. Have a look at this http://jsfiddle.net/andy_hop/FyqwS/ | |
Re: Hi. Is the "fade()" function already written? set your css for sec_1_svar_id so that the opacity is at 0. add the content with AJAX then call fade. function fadeUp(obj){ if(typeof(obj) == "string"){ obj = document.getElementById(obj); } var t; var opacity_counter = 0; var doFade = function(){ obj.style.opacity = (opacity_counter/100); /* … | |
Re: Hi. looking at the css on the site they are actually using CSS3's transitions. have a look here http://www.w3schools.com/css3/css3_transitions.asp for a little help on it. personally, I would probably use JQuery for it. | |
Re: taking the plus out would replace all whitespace chars with nothing variable.replace(/\s/g,""); if it's not working maybe there's something in the code surrounding this that needs debugging. | |
Re: if it's populated at runtime just do this: <div id="targetspace"><?php include description.php; ?></div> | |
Re: This usually happens when you get an element by ID and then use the hadle forgetting to use innerText or innerHTML. e.g. var div = document.getElementById("myDiv"); var text = "My div says " + div; this would produce the string "My Div says [object Object]" as pritaeas said, though. we … | |
Re: what are the commas for? plusyou have missed a forward slash on image path. this May work function nxtimg(country){ document.getElementById("imgcont").src="images/" + country + "/" + imgs[i] + ".jpg"; i++; } | |
Re: Not as far as I'm aware. but if converted to string it can be converted back to Integer afterwards. Seems an odd requirement though. can't actually see how this would affect a client at all! | |
Re: what about this var cont = document.getElementById("content"); cont.innerHTML = ""; var s = document.createElement("script"); s.type = "text/javascript"; s.src = \"js\/demo.js\"; cont.appendChild(s); | |
Re: <script> var hidden = true; function ToggleTB(){ var tb = document.getElementById("divText"); if(hidden){ tb.style.display = "block"; hidden = false; }else{ tb.style.display = "none"; hidden = true; } } </script> <input type="radio" onclick="ToggleTB();" checked /> <div id="divText" style="display:none;"><textarea></textarea></div> Having the global 'hidden' variable to check against means that the textarea's display can … | |
Re: I've ended shortening then script at the same time. I swapped your textarea out in favour of a div and put all your urls in a object literal. (could have been an associative array. Makes no difference really. <script type="text/javascript"> links = { A:"https://ical.bookeo.com/20212KWWNLA1396F7FEA1BWFW3J6/LHRAKRK63FAMPJP6/Z/I21263C4FA139C15D7BAC/ical.ics", B:"https://ical.bookeo.com/20212KWWNLA1396F7FEA1BWFW3J6/LHRAKRK63FAMPJP6/Z/I212NEKA9Y139E57D8DDA/ical.ics", C:"https://ical.bookeo.com/20212KWWNLA1396F7FEA1BWFW3J6/LHRAKRK63FAMPJP6/Z/I212WPEPUP1396F85E02B/ical.ics", D:"https://ical.bookeo.com/20212KWWNLA1396F7FEA1BWFW3J6/LHRAKRK63FAMPJP6/Z/I212NEKA9Y139E57D8DDA/ical.ics", E:"https://ical.bookeo.com/20212KWWNLA1396F7FEA1BWFW3J6/LHRAKRK63FAMPJP6/Z/I212ETT9PK139C15F2C25/ical.ics", F:"https://ical.bookeo.com/20212KWWNLA1396F7FEA1BWFW3J6/LHRAKRK63FAMPJP6/Z/I212Y6WMF4139C1C22637/ical.ics", G:"https://ical.bookeo.com/20212KWWNLA1396F7FEA1BWFW3J6/LHRAKRK63FAMPJP6/Z/I212AT4NRY139C165DB97/ical.ics", … | |
Re: no global variables neccesary <script> function toDays(years) { var time = 365 * years; return time; } document.write("My age is " + toDays(21)); </script> | |
Re: have you set an outgoing server address in your php.ini file? |