Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 15 of 15
  1. #1
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts

    Customized Alert/Confirm

    OKay I was asked to write this for a person, I just finshed it at 3 am and getting ready to goto bed.....need sleep...alcohol kicking in!! This is a customized alert, buttons, colors titles etc. Use more then once with different actions. I have not tested it on other browsers except IE, since all I have on this computer right now is IE.
    here it is...Please comment

    http://www10.brinkster.com/a1ien51/Customize/

    and the Search Script is being rewritten since people say my coding is ugly....cough Johgnn cough.....lol

    A1ien51

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    I bet mine is uglier that yours

    Done the Custom Alerts myself, rather quaint me thinks, wasn't sure wether to make them draggable or not.

  • #3
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    I think making it draggable is sort of a waste of code, I was thinking about it last night, but i choose sleep over it. I can see I am glad since what I typed last night makes no sense. LOL

  • #4
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    LOL......made it draggable in IE only....
    http://www10.brinkster.com/a1ien51/C...dragcustom.htm

    A1ien51

  • #5
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    You are a quick worker,



    did you actually get some sleep then




    I still find, even in your examples, that sometimes the dragging insn't as smooth as it ought to be

    Still as they say, great minds think alike

  • #6
    Regular Coder
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    576
    Thanks
    0
    Thanked 0 Times in 0 Posts
    the only prob i see is when you drag the box the scroll bar of the page goes crazy, i am using ie6.

  • #7
    Regular Coder
    Join Date
    Sep 2002
    Posts
    157
    Thanks
    0
    Thanked 0 Times in 0 Posts

    scroll bar's at bottom go big and small

    yes that happens to me also, the scroll-bars at bottom (not sure about top, only if you move it down wards)


    is this because of layers?
    Regards
    VKiDV

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hmm... that's interesting. I can drag it to the right and it doubles the width of the page being viewed.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #9
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    It is because of the layers...all that would have to be done in the code is add a no scroll to the layer when the drag is happening.

  • #10
    Regular Coder
    Join Date
    Jul 2002
    Location
    Iran
    Posts
    695
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Your work is cool, I really like it! But did you ever see the htmlarea in www.interactivetools.com?? They put an alert for their editor to get an image address, but it looks more natural, also they made a rectangle with curly edges by CSS I think that I don't know how to make! Go and download it, it's a cool script ( if you didn't b4! )

  • #11
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Swap the MenuF DIV with this and the bar problems go away. Tested with ie6.

    Code:
    <span style="position: absolute; visibility: hidden; top: 100; left: 150; z-index: 10;" id="MenuF">
    <form name="AlertProp" onsubmit="return false">
        <table border="1" cellpadding="0" cellspacing="0">
          <tr>
            <td>
            <table border="0" cellpadding="0" cellspacing="0"  class="TheTable">
          <tr>
            <td class="AlertBarTop"><span style="position: absolute; top: 4; left: 7;z-index:13;" onmouseover="MakeTrue()" onmouseout="MakeFalse()"><img border="0" src="blank.gif" width="275" height="21"></span><span class="AlertBarTopText" id="ConfirmTitle">A1ien51 Alert</span></td>
            <td class="AlertBarTop" align="right">
              <p align="right"><input type="button" name="CloseIt" value="X"  onclick="ClosedX()" class="CloseButton"></p>
            </td>
          </tr>
          <tr>
            <td colspan="2" valign="middle" align="center"><span class="AlertText" id="ConfirmMessage">Do You want to Continue On?</span></td>
          </tr>
          <tr>
            <td colspan="2" align="center" valign="middle" height="50">
               <input type="button" name="B1"  value="Continue" onclick="PerformIt()"  class="TheButtons">
               <input  type="button" name="B2"  value="Cancel"  onclick="CanIt()"    class="TheButtons">
            </td>
          </tr>
        </table>
            </td>
          </tr>
        </table>    
    </form>
    </span>
    Also, when you click and immediately move the cursor quickly, the layer is dragged with an offset from the cursor.

  • #12
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,649
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Nice job...but dragging and dropping alerts is really unnecessary so I think it's a huge bloat.

    How about auto page center?
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #13
    Regular Coder
    Join Date
    Jul 2002
    Location
    Iran
    Posts
    695
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool

    I'm lazy enough to wait for the updated script!

  • #14
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    Right now looking at computer code would be better then studying for all of my tests...........trying to graduate so i can get out into the real world

  • #15
    Regular Coder
    Join Date
    Jul 2002
    Location
    Iran
    Posts
    695
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I DOOOOOOOOOOOOOOOOOOO agree!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •