|
var rightclick
if (!e)
var e = event || window.event;
if (e.which)
rightclick = (e.which == 3)
else if (e.button)
rightclick = (e.button == 2)
This gives an error in Mozilla
|
|
|
|
|
swapnil Gadkari wrote: i want to display a context menu on mouse right click
This is how to do it ...
html>
<head>
<title>MyOwnContextMenu</title>
<script type="text/javascript">
function showMyMenu()
{
alert("This is where your menu code should be")
}
</script>
</head>
<body oncontextmenu="showMyMenu();return false;";>
</body>
</html>
modified on Wednesday, April 21, 2010 9:15 AM
|
|
|
|
|
|
I've been programming in C++ for a few years and in Qt for about a year. In Qt, I've written a data mining software of about 1500 lines of code that is pretty demanding computationally. I want to offer my software as an online web service however, I know very little about website development. I plan on hiring a freelancer to do this for me, but I don't know what specific skill set I should be looking for or what method I should use for accomplishing this goal. Any advice would be appreciated.
Thank you in advance for your time,
Amichai
|
|
|
|
|
As this is not a programming question, you may get a better (and quicker) response in the Lounge[^]
|
|
|
|
|
Advertise.
Someone will have the knowledge to do this for you.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC League Table Link
CCC Link[ ^]
|
|
|
|
|
Hi guys, i would like to use 'select'(dropdownlist in asp.net) onclick to make my calender control visible
using javascript...am a new bee in this field, does anyone know how i can do this?
Please help me
Thanks,
Morg
|
|
|
|
|
Unfortunately, DropDownList has no onclick method.
|
|
|
|
|
Yes it does.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Of course you are right, the select element
has an onclick, but the DropDownList control
does not.
|
|
|
|
|
A dropdownlist, which is rendered as a select element has the onclick event as most html elements do; however, dropdownlist usually handles the onchange event to be notified when the selection has been changed.
<asp:DropDownList runat="server" id="..." onclick="...">
<asp:DropDownList runat="server" id="..." onchange="...">
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
how can i include html in html page
any help!
|
|
|
|
|
Without using any server side language there is only one way to include one html
file within another html file.
<iframe src="included.html" width="450" height="400" frameborder="0">
Another way is to use any server side language. In all server side scripting
languages there is more than one method to include file.
Hope this will help!
Jinal Desai
|
|
|
|
|
Also you can use AJAX to include an html page into html after the page has loaded or other sense dynamically.
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
If you want to embed a page in another, use iframe. Syntax:
<iframe src="URL"></iframe>
The URL points to the location of the separate page. You can also point to a local file.
You can also set height and width:
<iframe src="demo_iframe.htm" width="200" height="200"></iframe>
For removing the borders, use following code:
<iframe src="demo_iframe.htm" frameborder="0"></iframe>
---AkiDakiObi
|
|
|
|
|
Hi Friends,
I have one wsdl method which will be called by J2ME application installed in the UserMobiles.
When evver I get the request to my Wsdl method, I need to read the headers to know the user mobile number.
Is there any way to read the headers in wsdl method... where as in aspx page I can easily read with Request.Headers collection, but from wsdl method I am not able to do that....
Can any one please help me in this..
Thankyou,
Haribabu K
|
|
|
|
|
I have tested the code in "http://www.codeproject.com/KB/scripting/FreezePanes.aspx?msg=2447985#xx2447985xx" to bring the effect of freeze panes. Is there a way that the scrolbar slider can be seen while scrolling up and down?
Thanks, Mohamed.
|
|
|
|
|
I want a small iframe in one of my pages. The user must enter some details in this iframe.
I don't want the user to be able to scroll within the iframe, because then the textboxes are out of sight.
I've added scrolling="no" to the iframe, and this removed the scrolling bars. BUT when the user selects the iframe and press the arrow keys, or holds down the mouse button and move the curser outside the iframe, it still scrolls. Is there any way to stop this from happening?
modified on Tuesday, April 20, 2010 3:32 AM
|
|
|
|
|
The simplest way would be to make the document and the
iframe the same size then there is no chance for
scrolling.Also using css position:fixed would prevent
scrolling.I think css overflow:hidden would help
you also.
|
|
|
|
|
i've used css to force the inner document to the same size as the iframe, and now it's perfect.
thanks!
|
|
|
|
|
|
See here[^]
I have deployed this page to enable you to see what my problem is.
(it will not be the final form, I am waiting to get the proper images sorted, but these will do as example).
if you hit the left or right arrows then the image moves the correct way, but the arrows are replaced by the words left and right and they won't come back.
Not exactly what I am after.
Here is the code on the HTML page...
<div id="dhtmlgoodies_slideshow">
<div id="previewPane">
<img alt="image" src="gallery/image1_big.jpg"/>
<span id="waitMessage">Loading image. Please wait</span>
<div id="largeImageCaption">This is the caption of image number 1</div>
</div>
<div id="galleryContainer">
<div id="arrow_left"><img alt="left" src="gallery/arrow_left.gif"/></div>
<div id="arrow_right"><img alt="right" src="gallery/arrow_right.gif"/></div>
<div id="theImages">
<!-- Thumbnails -->
<a href="#" onclick="showPreview('gallery/image1_big.jpg','1');return false"><img alt="image1" src="gallery/image1.jpg"/></a>
<a href="#" onclick="showPreview('gallery/image2_big.jpg','2');return false"><img alt="image2" src="gallery/image2.jpg"/></a>
<a href="#" onclick="showPreview('gallery/image3_big.jpg','3');return false"><img alt="image3" src="gallery/image3.jpg"/></a>
<a href="#" onclick="showPreview('gallery/image4_big.jpg','4');return false"><img alt="image4" src="gallery/image4.jpg"/></a>
<a href="#" onclick="showPreview('gallery/image5_big.jpg','5');return false"><img alt="image5" src="gallery/image5.jpg"/></a>
<a href="#" onclick="showPreview('gallery/image6_big.jpg','6');return false"><img alt="image6" src="gallery/image6.jpg"/></a>
<a href="#" onclick="showPreview('gallery/image7_big.jpg','7');return false"><img alt="image7"src="gallery/image7.jpg"/></a>
<a href="#" onclick="showPreview('gallery/image8_big.jpg','8');return false"><img alt="image8" src="gallery/image8.jpg"/></a>
<!-- End thumbnails -->
<!-- Image captions -->
<div class="imageCaption">This is the caption of image number 1</div>
<div class="imageCaption">This is the caption of image number 2</div>
<div class="imageCaption">This is the caption of image number 3</div>
<div class="imageCaption">This is the caption of image number 4</div>
<div class="imageCaption">This is the caption of image number 5</div>
<div class="imageCaption">This is the caption of image number 6</div>
<div class="imageCaption">This is the caption of image number 7</div>
<div class="imageCaption">This is the caption of image number 8</div>
<!-- End image captions -->
<div id="slideEnd"></div>
</div>
</div>
</div>
How do I get the arrows to stay as arrows?
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
Dave, change both the lines in your js file
from
this.getElementsByTagName('IMG')[0].src = 'images/' + this.id +
to
this.getElementsByTagName('IMG')[0].src = 'gallery/' + this.id +
then your left and right arrows appear. Also, your web server is showing a security issue insofar that the directory of folders is displayed.
modified on Monday, April 19, 2010 6:53 PM
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Thanks, I new there had to be something obvious I had missed!
As for the security issue, I will have to contact the hosting company tomorrow.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
Dalek Dave wrote: As for the security issue, I will have to contact the hosting company tomorrow.
They might tell you to set them yourself. Set this via your FTP program (FileZilla for example).
modified 1-Aug-19 21:02pm.
|
|
|
|