Click here to Skip to main content
15,885,141 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Encrypt URL to prevent parameter tampering attacks Pin
User 98858-Feb-07 21:28
User 98858-Feb-07 21:28 
AnswerRe: Encrypt URL to prevent parameter tampering attacks Pin
badgrs8-Feb-07 23:05
badgrs8-Feb-07 23:05 
AnswerRe: Encrypt URL to prevent parameter tampering attacks Pin
Bradml9-Feb-07 2:47
Bradml9-Feb-07 2:47 
GeneralRe: Encrypt URL to prevent parameter tampering attacks Pin
SindyatIndy9-Feb-07 4:19
SindyatIndy9-Feb-07 4:19 
QuestionError Opening project Pin
No-e8-Feb-07 7:17
No-e8-Feb-07 7:17 
AnswerRe: Error Opening project Pin
Sandeep Akhare8-Feb-07 23:52
Sandeep Akhare8-Feb-07 23:52 
Questionjavascrpt drop down blank Pin
spinanicky8-Feb-07 3:56
spinanicky8-Feb-07 3:56 
QuestionJavascript : Moving objects Pin
SoftDeveloper8-Feb-07 3:48
SoftDeveloper8-Feb-07 3:48 
Hi, I just wrote some javascript codes to move a div object by mouse-moving.
But the smoothness of the moving is not perfect.
I can correct this problem in IE by using setCapture & releaseCapture functions,
but I can't in firefox.
If anybody knows how to fix that problem, then help me.
Thank you.

The following code is the code I mentioned.
<html>
<style>
	.Obj
	{
		width:100px;
		height:100px;
		background:red;
		position:absolute;
		z-index:100;
	};
</style>
<script>
	var bFlag = false;
	var offsetX, offsetY;
	function fnInit()
	{
		div1.addEventListener("mousedown", fnDown, false );
		div1.addEventListener("mouseup", fnUp, false );
		div1.addEventListener("mousemove", fnMove, false );
	}
	function fnDown()
	{
		bFlag = true;
		offsetX = arguments[0].clientX - parseInt(div1.style.left);
		offsetY = arguments[0].clientY - parseInt(div1.style.top);
	}
	function fnUp()
	{
		bFlag = false;
	}
	function fnMove()
	{
		if(bFlag)
		{
			div1.style.left = arguments[0].clientX - offsetX;
			div1.style.top = arguments[0].clientY - offsetY;
		}
	}
</script>
<body onload="fnInit()">
	<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
	<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
	<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
	<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
	<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
	<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
	<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
	<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
	<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
	<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
	<p>asdlfj lfkasdlfkj aslkjasdlf; asdklfj asdlfkj </p>
	<input type="text" id = "txt1" />
	<div class="Obj" id = "div1" style="{left:20;top:50;}"></div>
</body>
</html>

QuestionWeb.Config Security settings. Pin
BLOEDHOND8-Feb-07 1:51
BLOEDHOND8-Feb-07 1:51 
AnswerRe: Web.Config Security settings. Pin
Sandeep Akhare8-Feb-07 3:55
Sandeep Akhare8-Feb-07 3:55 
Questionscrollbar using Pin
Shital@icon7-Feb-07 22:45
Shital@icon7-Feb-07 22:45 
QuestionXHTML and css Pin
User 98857-Feb-07 19:56
User 98857-Feb-07 19:56 
AnswerRe: XHTML and css Pin
User 98857-Feb-07 20:01
User 98857-Feb-07 20:01 
GeneralRe: XHTML and css Pin
Bradml7-Feb-07 22:32
Bradml7-Feb-07 22:32 
GeneralRe: XHTML and css Pin
User 98857-Feb-07 22:57
User 98857-Feb-07 22:57 
GeneralRe: XHTML and css Pin
Bradml7-Feb-07 23:00
Bradml7-Feb-07 23:00 
GeneralRe: XHTML and css Pin
User 98857-Feb-07 23:08
User 98857-Feb-07 23:08 
GeneralRe: XHTML and css Pin
Bradml7-Feb-07 23:12
Bradml7-Feb-07 23:12 
AnswerRe: XHTML and css Pin
Bradml7-Feb-07 22:32
Bradml7-Feb-07 22:32 
AnswerRe: XHTML and css Pin
szukuro8-Feb-07 1:29
szukuro8-Feb-07 1:29 
GeneralRe: XHTML and css Pin
User 98858-Feb-07 2:04
User 98858-Feb-07 2:04 
QuestionHelp in asp .net and mysql Pin
Rock Star.7-Feb-07 19:14
Rock Star.7-Feb-07 19:14 
AnswerRe: Help in asp .net and mysql Pin
badgrs8-Feb-07 0:53
badgrs8-Feb-07 0:53 
QuestionHelp in using media player control in C# Asp.net web application Pin
EEmaan7-Feb-07 18:37
EEmaan7-Feb-07 18:37 
AnswerRe: Help in using media player control in C# Asp.net web application Pin
Christian Graus8-Feb-07 0:36
protectorChristian Graus8-Feb-07 0:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.