Jump to content

RenegadeFX

Members
  • Content Count

    29
  • Joined

  • Last visited

Community Reputation

0 Neutral

About RenegadeFX

  • Rank
    Newbie
  1. Ok so I have this animation Object thing (I'm still kinda new to Objects).Script: var Widget = { Default: { Duration: 0.8, fps: 10 }, Effect: { Move: function(Id,oParams) { var Self = this; this.Obj = $(Id); this.fps = oParams.fps || Widget.Default.fps; this.Timer = null; this.x = oParams.x; this.y = oParams.y; this.FromX = Self.Obj.offsetLeft; this.FromY = Self.Obj.offsetTop; this.Duration = (oParams.Duration*1000) || (Widget.Default.Duration*1000); this.HigherTo = Math.max(Self.x,Self.y); this.HigherFrom = Math.max(Self.FromX,Self.FromY); this.Frames = (Self.Highe
  2. I need to be able to replace this <a href="http://www.UrlToSite.com">Site Link</a> with just http://www.UrlToSite.com with a Regular Expression this is what I have so far <a[^<>]+href="([^<>]+)"[^<>]*>([^<>]+)</a> and that works fine for a link with just the href but if it has anything else like style="background:#CCF;" it works but it includes the style="background:#CCF;"Any help would be Awesome.
  3. Thanks you sooo much. :)And yes that does help to know what browser.If it's not to much trouble what OS are you running(like Window XP, Vista, 98)
  4. I just need help testing this script cause I only have access to Macs and I need to test this Drag n' Drop Script in as many browsers as possible Like IE8,7 and so on I've already tested it on "Firefox 3, Safari 4 Beta, Opera 9.6, Camino 1.6, BumberCar 2, Flock 2, iCab 4.5, Internet Explorer 5, Mozilla 1.3, Navigator 9, OmniWeb 5.9, SeaMonkey 1.1, Shiira 2.2" and the only browser that caused trouble were Mozilla 1.3(Expected though) and IE 5(Also Expected).and Also I'm kinda new at this stuff so any help to Improve this script would be awesome thanks. function getElementsByClass(Class,Node,T
  5. This Drag n' Drop script does seem to want to work and My browsers(Firefox,Safari "on a Mac") don't throw me any errors so I just need some help finding out whats wrong.Here's the Code <body><div class="Draggables" id="Draggable_1" onmouseover="MakeIt(this.id);"> Drag and drop me</div><div class="Draggables" id="Draggable_2" onmouseover="MakeIt(this.id);"> Drag and drop me too</div><div class="Dropper" id="Dropper_1">Drop it here please :)</div><div class="Dropper" id="Dropper_2">Or Drop it here :)</div><script type="text/javascript" la
  6. Need Help with my drag n' drop script I want to be able to send it a ClassName all elements with that className will be Draggable but It just Doesn't seem to work I got it to work fine with just an Id heres the script for that <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.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" /><title>Drag n' Drop</title><style type="text/css">.Draggables { cursor: move; border: #000 1
  7. Ha wow now I feel stupid I just changed a + to a - Ha sorry
  8. So heres what I have so far I it works fine except It adds 16px to the y coords when I start the Drag <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.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" /><title>Drag n' Drop</title><style type="text/css">.Draggables { cursor: move; position: absolute; left: 220px; top: 20px;}.Dropper { width: 200px; height: 200px; -moz-border-radius: 10px; border: #000 1px solid;}</s
  9. So heres what I have so far I it works fine except It adds 16px to the y coords when I start the Drag <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.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" /><title>Drag n' Drop</title><style type="text/css">.Draggables { cursor: move; position: absolute; left: 220px; top: 20px;}.Dropper { width: 200px; height: 200px; -moz-border-radius: 10px; border: #000 1px solid;}</s
  10. So heres what I have so far I it works fine except It adds 16px to the y coords when I start the Drag <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.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" /><title>Drag n' Drop</title><style type="text/css">.Draggables { cursor: move; position: absolute; left: 220px; top: 20px;}.Dropper { width: 200px; height: 200px; -moz-border-radius: 10px; border: #000 1px solid;}</s
  11. I hate it that safari automatically puts a glowing blue border around the input fields when they have focus and I would like to know how to get rid of that border(if Possible with javascript).Like this when It's normal and when it's selected
  12. Ok I think this is what your page should look like. <html><head><title></title><script type="text/javascript>function GetNumbers() { var Chance = Math.round(Math.random()*1000); var Winner = 1; var Output = "Nope sorry you lost :("; if(Chance == Winner) { Output = "OMG It's so amazing you won!!!! :D"; } ShowWinner(Output);}function ShowWinner(Output) { document.getElementById("DisplayDiv").innerHTML = Output;}window.onload = GetNumbers;</script></head><body><div id="DisplayDiv"></div></body> Ok so what this does, first I c
  13. function GetNumbers() { var Chance = Math.round(Math.random()*1000); var Winner = 1; var Output = "Nope sorry you lost :("; if(Chance == Winner) { Output = "OMG It's so amazing you won!!!! :D"; } ShowWinner(Output);}function ShowWinner(Output) { window.location = "WinningPage.html";}window.onload = GetNumbers; Something like that I think what ever is in the ShowWinner function will be displayed if the numbers match.
  14. Yeah thats all pure javascript
×
×
  • Create New...