DHTML Problem

Jul 20, 2005

I've copied some code from a book which will enable me to make a layer
around a page, my aim is to do something a little more complex but this I
thought would get me started.

Anyway, I've run into a problem before I even start! The script works OK, it
runs the image in from the left hand side quite nicely, great. Problem I
have it always scrolls up to the top of the page, when the link I click
maybe 2 or 3 screens below (does that make sence?). I thought if I was to
add a name attribute to the link I could get the co-ordinates of this and
the screen will not reposition. Code:

View 3 Replies


ADVERTISEMENT

JS V DHTML

Oct 22, 2001

here's a question. Can anybody outline the primary advantages and disadvantages and differences between javascript and DHTML.

View 3 Replies View Related

DHTML: Div Animation

Nov 24, 2006

All I want to do is to have a div slide down from underneath a button I have. When i search online, I find a zillion slide down menu scripts, but they don't work for just
sliding a div.

View 4 Replies View Related

DHTML Is Not Working In IE

Jul 26, 2011

My pages all have the same blank at start then the images slide up trick. I have an old workaround for IE that stopped working, and I don't know what to do. In IE now nothing shows up.

View 1 Replies View Related

Difference Between DOM And DHTML?

Aug 23, 2009

What is the difference between DOM, Javascript and DHTML?

Alert() and document.write() is a DOM method or Javascript method?

View 6 Replies View Related

GET Variables In Dhtml

Aug 31, 2003

So I need to use variables passed in the url for dhtml calculations.

View 3 Replies View Related

Looking For A Particular Scroller (DHTML)

Jan 2, 2004

Here goes:

I'm looking for a particular dhtml content scroller that is will slide to different sections of the content when a link is clicked.

Imagine a long table with all the pages of content on it side by side and a layer is placed over that table so that when a link is clicked the desired content will slide into view.

Its a very common effect used in flash sites but im wondering if anyone knew how to do it using dhtml.

View 2 Replies View Related

DHTML / Javascript

Apr 20, 2004

I have a form that will display either text boxes to edit a start and end date or just display nothing depending on the selection from a <select>. I am using JavaScript and DHTML to accomplish this and the code below works fine. When the page loads my <select> will have a value already.

My question is how do I get the correct block of code to show up when the page loads depending on what is already selected? I can't use an onLoad in the body tag because I am unable to edit the body tag. Code:

View 2 Replies View Related

Dhtml Slideshow

Jan 13, 2005

I've got a good cross browser dhtml fade in script that shows random images from an array when the window loads. It works perfectly for that.

I'd like to alter the code to show when the window loads the 'entire slideshow' over and over in a loop. I'm very new to JavaScript and could use a bit of help or advice on how to implement this. My coding knowledge is very basic. Code:

View 8 Replies View Related

Dhtml Scrollers

Mar 25, 2006

Anyone know a scroller script that only scrolls through text once? not loop forever?

View 1 Replies View Related

DHTML Menus And Video

Aug 31, 2005

I'm having a hard time with the use of my DHTML menu and video on my
site. The video is served using Windows Media Player. Short of hiding
it, I can't seem to get my DHTML menu to appear above the video.
Unfortunately, I have noticed that hiding the video caused the browser
to flash several times. Does anyone know of anything I can implement
that would minimize the client side impact and also allow my menu to
appear on top of the video?

View 5 Replies View Related

Troubleshooting DHTML And Javascript

Oct 20, 2006

I am testing in IE7.

I display one of several spans when the user mouses over some code.
Inside the span are several tabs. Clicking on the tab triggers a JS
function that hides the "current" text for the span, then shows the
"new Current" box. It's a constantly revolving door- turn off old,
turn on new. Switch from one span to another and reset the fields.

When I switch between different "spans" then switch back, there are
ghost form elements on the screen (a text area, a blank button) that
appear near where they should be. The section that I was last on does
not display. This occurs when switching between different spans.
HOWEVER, when I set a javascript alert to display what the old visible
and new visible divs are within each span, none of these problems
occur- everything displays correctly. It's as if the alerts "reset"
the javascript display in some fashion. The errors only happen when
the alerts are not on.

Does anyone know why this might happen or if it's a common occurence
that these problems disappear when an alert is used? If I don't use an
alert, how do you display JS variables during testing. Here are some
of my JS functions. Code:

View 2 Replies View Related

Wrapping Element With DIV Using DHTML?

May 15, 2009

how to wrap an element with a div (or other element) using DHTML.

For instance lets say l have this in my HTML:

<a href="#" id="btn">test</a>
if l use the following script:
obj = document.getElementById('btn').innerHTML;
obj = '<div>' + obj + '</div>';

[Code]....

View 5 Replies View Related

Hangman (DHTML/ActiveX)

Jan 3, 2003

I thought I'd post this and see what you guys think (go easy on me :)). Anyway, my teacher gave the class a project to see if we could make a hangman game with an ActiveX object's draw methods and some good ole' DHTML. I've always wondered why javascript doesn't have any draw methods or graphics objects like Java has.

I suppose SVG will take the place of activeX and Flash... hopefully. Once we had the right object id it was a piece of cake (I found it by the way). Anyway, here's my program. I would've put the code in this post but I have a few includes and graphics that go with it. Best viewed in 1024 x 768 resolution, and IE only (of course).

View 2 Replies View Related

DHTML Slider Widget

Aug 5, 2002

Using ViewLink behaviors (IE5.5+) and XBL bindings (Gecko-only - NS6+, Mozilla, etc), I basically created an encapsuled widget. That means you can infinitely reuse it with no conflicts.

To implement on a page, you'll need to add this attribute to the <html> tag to make IE happy:

xmlns:rdhtml="http://rdhtml.resource-locator.com/xmlns"

As well as add another thing to keep IE happy - a proprietary import processing instruction, before the <head> tag:

<?import namespace="rdhtml" implementation="slider.htc"?>

And define this style somewhere and apply it to the page:

rdhtml:slider {
-moz-binding: url(slider.xml#slider);
-moz-user-focus: normal;
-moz-user-input: enabled;
display: block;
padding: 0;
margin: 0;
position: relative;
}

After all of that, to add as many as you want to a page:

<rdhtml:slider width="width in pixels - defaults to 150 if not present" onvaluechange="event to fire when the gripper is moved"></rdhtml:slider>

If I feel the need, I will also implement a "value" attribute which sets the default value of the slider.

Speaking of which, the value property of the element is 0 - 100, reflecting the percentage of the slid amount. And is read/write. :)

(In Mozilla, I implemented a read/write width property as well, and intend to eventually add that in the IE implementation)

You can manipulate the value and position of the gripper by dragging the gripper, clicking on the track (really an hr), or focusing it, and using arrow keys, page up/down, or home/end.

To customize the look, slider.css is applied to every slider.

Required files are:
slider.css (styles the sliders)
slider.xml (XBL binding for Gecko)
slider.htc (ViewLink behavior for IE5.5+)

I've only had it tested in Win2k, XP Home, XP Pro in IE6, and in Win2k and WinXP Pro in a 1.1 trunk Mozilla.

I've been told that it is "sluggish" in IE6, but on my pc it is very smooth. Is it just me where it performs satisfactorily in IE6?

And I'm aware of a weird bug in my implemention of it in Mozilla where clicking on a slider bar sometimes moves the last focused slider instead...

If an IE5 user could confirm that it doesn't work for them, that would be great, and I still need someone in IE5.5 to tell me it works....
Someone with a 1.0 trunk of Mozilla would be much appreciated too. :)

Any ideas for additions would be cool too, though I'm not sure what other attributes I could add that would be useful?

View 6 Replies View Related

DHTML Drop Down Menu?

Feb 22, 2010

Ok guys l generated some dhtml drop down menu using Sotthink DHTML menu 8.Now l am editing it in my Netbeans but cant change the height of the seperator .

View 1 Replies View Related

Need DHTML Answer ASAP

Aug 13, 2010

what is the function of code...

View 2 Replies View Related

DHTML, JAVA, JAVASCRIPT?

Apr 19, 2001

Is DHTML a language? or is it a composition of JavaScript and css? Does Java(not javascript) has something to do in it?

What is actually the best to create client-side dynamic pages?
I know JAVA is used to create applets but I am not sure of wich is the most powerful....

Also, wich are the newer versions of all the above languages?

View 15 Replies View Related

JS/DHTML Menu And Flash

Dec 21, 2004

Ok so I'm using FxMenu 4.1.1 on my website at the moment. I figured that I wanted to keep the menu static so it wouldnt ahve to reload everytime someone clicked on page. I made a 3-framed framset with a header,center, and a footer. The center consists of the menu and an iframe. The pages that load from clicked on the menu items load in the iframe. Here's my problem: if I load a flash movie or whatever in the iframe it overlaps the menu. Code:

View 2 Replies View Related

DHTML Scripts And Macs

Jul 11, 2001

I picked up a great news ticker script from dynamic drive:
http://www.dynamicdrive.com/dynamicindex2/crosstick.htm

But found that it in a mac it has problems when you hit the back button, to return to the page that it was on, it overwrites itself/gets jumbled up. Problem is solved by refreshing the page.

My question is - are dhtml scripts more likely to be a bit buggy in macs? Does anyone have any experience with this particular script and have they found a way around this?

View 2 Replies View Related

DHTML Back Button - FF Vs IE

May 11, 2006

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> Back Button Test </title>
<script language="JavaScript">
<!--
function createDiv(){
var div = document.createElement('div');
div.innerHTML = TEST DIV'
document.body.appendChild(div);
}
//-->
</script>
</head>
<body>
<input type="button" value="Create Div" onclick="createDiv()">
</body>
</html>

I using this code sample to create some divs in Firefox and IE6. After going to another site ex:google.com..if I click in the back button the created divs remain in Firefox, like I want, but doesn't in IE... Do you know what's wrong?! Is this an IE6 lack?!

View 2 Replies View Related

DHTML Link Question

Mar 28, 2007

I am designing a free web site for a local organization/business. I found some awesome menus on DHTML central that I and the client love. They go great with the design of the website, as well. My problem? The client wants the links to close when you mouse off of the links. I don't know the coding to make it do that.

View 5 Replies View Related

Dhtml Onchange For A Time

Nov 17, 2011

i want change then click for 3 second :

Code:
<html>
<head>
<script type="text/javascript">
function changetext(id)
{
[Code]...

View 4 Replies View Related

Changing Text With Javascript/DHTML?

Jul 23, 2005

Is there a way to change the displayed text on a web page using some
combination of Javascript and DHTML? NOT in a text box. As far as I
know (with my limited knowledge) the only way you can do this is with
a textbox or images, which is not what I'd like to do. There's gotta
be a way to do this, right?

View 3 Replies View Related

Resizable Textarea Usiong DHTML

Mar 16, 2006

I cannot seem to set a size for a text area relative to total screen width in CSS or HTML or Javascript? When I use CSS or a percent value in the cols attribute, they size the textarea as a percentage of another text area on the screen.

View 4 Replies View Related

Javascript, DHTML. Scrolling Bug In Firefox.

Jul 21, 2007

When I trying to do:
this.ctrl.style.display = 'block'

Firefox scroll area to the top, but IE not. I think that's bug. Maybe
anyone knows how I can fix that?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved