Go Back   CodingForums.com > :: Client side development > JavaScript programming > Post a JavaScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 26 votes, 5.00 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-12-2002, 07:57 AM   PM User | #1
A1ien51
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
A1ien51 will become famous soon enough
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
A1ien51 is offline   Reply With Quote
Old 10-12-2002, 01:30 PM   PM User | #2
Mr J
Senior Coder

 
Join Date: Aug 2002
Location: UK
Posts: 2,789
Thanks: 2
Thanked 14 Times in 14 Posts
Mr J is on a distinguished road
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.
Mr J is offline   Reply With Quote
Old 10-12-2002, 04:38 PM   PM User | #3
A1ien51
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
A1ien51 will become famous soon enough
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
A1ien51 is offline   Reply With Quote
Old 10-12-2002, 09:27 PM   PM User | #4
A1ien51
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
A1ien51 will become famous soon enough
LOL......made it draggable in IE only....
http://www10.brinkster.com/a1ien51/C...dragcustom.htm

A1ien51
A1ien51 is offline   Reply With Quote
Old 10-12-2002, 10:02 PM   PM User | #5
Mr J
Senior Coder

 
Join Date: Aug 2002
Location: UK
Posts: 2,789
Thanks: 2
Thanked 14 Times in 14 Posts
Mr J is on a distinguished road
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
Mr J is offline   Reply With Quote
Old 10-20-2002, 12:34 AM   PM User | #6
chrismiceli
Regular Coder

 
Join Date: Sep 2002
Location: Louisiana
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
chrismiceli is an unknown quantity at this point
the only prob i see is when you drag the box the scroll bar of the page goes crazy, i am using ie6.
chrismiceli is offline   Reply With Quote
Old 10-23-2002, 05:58 PM   PM User | #7
vkidv
Regular Coder

 
Join Date: Sep 2002
Posts: 157
Thanks: 0
Thanked 0 Times in 0 Posts
vkidv is an unknown quantity at this point
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
vkidv is offline   Reply With Quote
Old 10-27-2002, 02:39 AM   PM User | #8
whammy
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
whammy is an unknown quantity at this point
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. ;)
whammy is offline   Reply With Quote
Old 10-27-2002, 05:33 AM   PM User | #9
A1ien51
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
A1ien51 will become famous soon enough
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.
A1ien51 is offline   Reply With Quote
Old 10-30-2002, 05:44 AM   PM User | #10
ConfusedOfLife
Regular Coder

 
Join Date: Jul 2002
Location: Iran
Posts: 695
Thanks: 0
Thanked 0 Times in 0 Posts
ConfusedOfLife is an unknown quantity at this point
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! )
ConfusedOfLife is offline   Reply With Quote
Old 11-02-2002, 08:30 PM   PM User | #11
x_goose_x
Regular Coder

 
Join Date: Jun 2002
Location: Montreal, Canada
Posts: 644
Thanks: 0
Thanked 0 Times in 0 Posts
x_goose_x is an unknown quantity at this point
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.
x_goose_x is offline   Reply With Quote
Old 11-03-2002, 01:39 AM   PM User | #12
zoobie
Senior Coder

 
Join Date: Jun 2002
Location: ColoRockyz
Posts: 1,642
Thanks: 1
Thanked 0 Times in 0 Posts
zoobie has a little shameless behaviour in the past
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( ! )">
zoobie is offline   Reply With Quote
Old 11-03-2002, 09:18 PM   PM User | #13
ConfusedOfLife
Regular Coder

 
Join Date: Jul 2002
Location: Iran
Posts: 695
Thanks: 0
Thanked 0 Times in 0 Posts
ConfusedOfLife is an unknown quantity at this point
Cool

I'm lazy enough to wait for the updated script!
ConfusedOfLife is offline   Reply With Quote
Old 11-03-2002, 11:05 PM   PM User | #14
A1ien51
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
A1ien51 will become famous soon enough
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
A1ien51 is offline   Reply With Quote
Old 11-04-2002, 09:26 PM   PM User | #15
ConfusedOfLife
Regular Coder

 
Join Date: Jul 2002
Location: Iran
Posts: 695
Thanks: 0
Thanked 0 Times in 0 Posts
ConfusedOfLife is an unknown quantity at this point
I DOOOOOOOOOOOOOOOOOOO agree!
ConfusedOfLife is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:59 AM.


Advertisement
Log in to turn off these ads.