javascript heads
- Started
- Last post
- 5 Responses
- wwfc
can anyone tell me how I can combine two lots of js to work together and as one.
This js:
http://pastebin.com/m4a2582fa
makes elements draggable around the browser - but doesn't remember the dragged elements position on refresh.where as this js does:
http://pastebin.com/m1a840077How can I add the cookie functions from the second js to the first one - i have tried but it makes everything static!!! couldn't work less well if I tried !
Anyone put a fella right? please?
;-)
- airey0
any reason you don't want to simply link the 2 files as separate? (apologies for not actually being of any help, just wondering)
- wwfc0
...I tried that but as I say - it all just became static! - I thought that would be the easiest way but, alas, no.
I also tried renaming in the javascript and then cutting and pasting to the first js - again went static :-(
I'm sure there is something I'm missing - just not sure what.
but thanks airey ;-)
- airey0
ahh. ok, you've got one behaviour negating another. in ensuing chaos results in nothing happening. been there. you'll need to get someone who understands JS to look that over for you.
- wwfc0
...that's what I am hoping - I just don't get how to combine the functions of the second js script to integrate with the first.
I don't know if I need all of the second lot of js or just a couple of lines from the second - do I need to replace lines or add to??
Probably very simple if you know what you are looking at - but I don't :-(
**looks woeful and sniffs tearfully**
- wwfc0
...bump-a-tee-bump
***starting to twitch through too much javascript gazing***