|
here..that's gif picture
http://115.com/file/cl3kn5ai(1).rar
|
|
|
|
|
hack004 wrote: http://115.com/file/cl3kn5ai(1).rar
What is this ???? its something written in Chinese ...
Apurv
If Java had true garbage collection, most programs would delete themselves upon execution.
|
|
|
|
|
Don't understand what the problem is ... its taking me to http://www.esp.com.cn/index.aspx[^]
Apurv
If Java had true garbage collection, most programs would delete themselves upon execution.
|
|
|
|
|
I'm using javascript inside a post in wordpress. I'm trying to position an element on top of another element. The script works fine in safari and firefox, but not Chrome. The y position is off by 30 pixels. If I run the script on a stand-alone web page it works fine in Chrome. The script I use to position is below. Anyone have an ideas what might be wrong?
function init()
{
var canvas = document.getElementById('tutorial');
var imgBack = document.getElementById('background');
var xImage = imgBack.offsetLeft;
var yImage = imgBack.offsetTop;
var elem = imgBack.offsetParent;
while (elem)
{
xImage += elem.offsetLeft;
yImage += elem.offsetTop;
elem = elem.offsetParent;
}
canvas.style.position = 'absolute';
canvas.style.left = xImage + "px";
canvas.style.top = yImage + "px";
}
|
|
|
|
|
Have you dropped into the chrome debugger and attached some watches or inject some javascript for logging to see what is going on in both the standalone and inside wordpress instances?
That may help to pin the issue....
|
|
|
|
|
Yes. I see a strange message: Not allowed to load local resource: file:///C:/DOCUME~1//LOCALS~1/Temp/moz-screenshot.png
don't know why that's there.
besides that I tried tracing offsetTop, etc., but don't see anything wrong
|
|
|
|
|
Maybe the strange message given the fact it is pointing to an image resource may be upsetting the item positions?
Does the strange message exist in both the standalone and in wordpress instanaces?
I would to be clearing all strange messages and get back to a known good state.
It is difficult to suggest what next as it is one of those problems where you would need to be at the machine having a dig.....if you know what I mean.
|
|
|
|
|
Hi all,
Im trying to make the slideshow using javascript, the images will be available in the folder. My requirement is the images can be replaced at anytime in the folder, according to that the script retrives the available images from the directory and should play the slide show. Please let me know how to achieve and also provide if any code snippet if you have.
Thanks
Kanna
|
|
|
|
|
http://www.a1javascripts.com/
http://www.javascriptkit.com/
|
|
|
|
|
This[^] is what JSOP is using.
|
|
|
|
|
|
For the slideshow for dynamic fetching of images, refer the link below.
http://www.dynamicdrive.com/dynamicindex14/flexislide.htm
-Manognya
__________________________________________________
$ God gives what is best.Not what all you wish
|
|
|
|
|
Hi,
How to find the Find X,Y position of a element, which is working both in IE and Firefox. Codes from net not working in mozilla.
Thankyou
|
|
|
|
|
use property .style (CSS)
complete HTML and DHTML reference for IE see
http://msdn.microsoft.com/en-us/library/ms533050.aspx
.position see http://msdn.microsoft.com/en-us/library/ms531140.aspx
|
|
|
|
|
Try this:
var e = document.getElementById(id), x = e.offsetLeft, y = e.offsetTop;
while(e = e.offsetParent) {
x += e.offsetLeft;
y += e.offsetTop;
}
|
|
|
|
|
Anybody knows how disable refresh when enter key pressed in the form input text in JavaScript?
I have this JavaScript code
function runScript(e){
if(e.keyCode == 13){
var div = document.createElement("div");
div.setAttribute("class", "resultItem");
var parentDiv = document.getElementById("result");
var input = document.getElementById("txtBox");
div.innerHTML = input.value;
parentDiv.appendChild(div);
}
}
My HTML code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Untitled Document</title>
<script src="script.js"></script>
</head>
<body>
<form>
<fieldset>
Website URL:
<input id="txtBox" type="url" onKeyPress="return runScript(event)"/>
</fieldset>
</form>
<div id="result">
<h2>URL List</h2>
</div>
</body>
</html>
My problem is when everytime I hit enter on my keyboard it refresh the page. I want it in every enter the value in the text box will be displayed below the URL List. Any help will be appreciated
|
|
|
|
|
hi,
flashery wrote: <input id="txtBox" type="url" önKeyPress="return runScript(event)"/>
Try this one
<input id="txtBox" type="url" onkeydown="javascript:return runScript(event)" onkeypress="javascript:return false;"/>
|
|
|
|
|
I cant type anything on my textbox.. Maybe its because of this onkeypress="javascript:return false;"
|
|
|
|
|
may be for oncontextmenu:
window.event.returnValue=false; // result not a return
return false; // oncontextmenu may be visible
so for other events may be too (ignore of return value).
if possible ....
read out an event
if(window.event!=null)
{X01=window.event;
if(X01.srcElement!=null)
{X02=X01.srcElement;
d010[0]=X02;
if(X02.tagName!=null){d010[1]=X02.tagName;}
d010[2]=X01.returnValue;
d010[3]=X01.type;
d010[4]=X01.cancelBubble;
d010[5]=X01.reason;
d010[6]=X01.propertyName;
X00=true;
}
}
save cancelBubble
i.e. fireEvent() set cancelBubble allways to false
X03=window.event.cancelBubble;
X04=document.createEventObject();
X02=X00.fireEvent(X01,X04);
window.event.cancelBubble=X03;
Syntax
bFired = object.fireEvent(sEvent [, oEventObject])
Parameters
sEvent Required. String that specifies the name of the event to fire.
oEventObject Optional. Object that specifies the event object from which to obtain event object properties.
erzeugt mit document.createEventObject()
Return Value
Boolean. Returns one of the following values:
true Event fired successfully.
false Event was cancelled
function fnFireEvents()
{
oDiv.innerText = "The cursor has moved over me!";
oButton.fireEvent("onclick");
}
Using the fireEvent method
By moving the cursor over the DIV below, the button is clicked.
Mouse over this!
Button
|
|
|
|
|
Thanks man but this code is really to advance for me> I'm just learning JavaScript. But thanks anyway..
How about this code
function disableRefresh(e){
if(e.keyCode == 13){
return false;
}
}
this makes the following code after
return false; execute without refreshing the page and it work for me.
My html textbox is look like this.
<form>
<input id="txtBox" onKeyPress="disableRefresh(event)" type="text" />
/form>
Correct me if I'm wrong cause this is the best and simple way for me to do this.
|
|
|
|
|
disableRefresh(event) // param event must have type of object event
// disableRefresh(this) give the pointer of INPUT that have an event like onkeypress
|
|
|
|
|
add a input type text belowe it.
demo: u want disable refesh when enter key pressed on input name 'a'
<form>
<input type='text' name='a'/>
<input type='text' style='display:none'/>
<input type='submit' value='submit'>
</form>
Now u can press enter key and page will not reload
|
|
|
|
|
Hi friends,
i am having aspx page with information ... andone js file contains code for overlay... i want to populate the span information as overlay content..
thanks in advance
|
|
|
|
|
Hi,
I had written javascript code using window.open( ).I want to enable the pop-up blocker using javascript,instead enabling manually.
Any idea.
Guhananth.S
|
|
|
|
|
Javascript is readable code during parsing. Every body can turn on off
popup blocker of browser .... easy way of full risk for user of browser.
You want control GUI of browsers and popup-blockers with javascript
during parsing of webpage - all browsers in same way --> in use of
html DOM ?
I think: NOT possible.
So see http://www.w3schools.com/htmldom/dom_intro.asp
|
|
|
|