Nairaland Forum

Welcome, Guest: Join Nairaland / Login / Trending / Recent / New
Stats: 1238314 members, 1650553 topics. Date: Wednesday, 23 April 2014 at 10:12 PM

I Need Help On Dhtml - Programming - Nairaland

Nairaland Forum / Science/Tech / Programming / I Need Help On Dhtml (589 Views)

Dhtml Pastebin / Codebin : Run Php/jscript/html Online / Post Your Javascript/ajax/dhtml Questions Here (1) (2) (3) (4)

(0) (Reply) (Go Down)

I Need Help On Dhtml by jackback(m): 2:30pm On Oct 08, 2007
ever visited zenith securities website, does anyone know how that scrolling stock report is done?if you have any experience on it,please send me a mail on jackbone_2_life@yahoo.com
Re: I Need Help On Dhtml by jackback(m): 2:31pm On Oct 08, 2007
ever visited zenith securities website, does anyone know how that scrolling stock report is done?if you have any experience on it,please send me a mail on jackbone_2_life@yahoo.com
Re: I Need Help On Dhtml by onyekesimo(m): 7:21pm On Nov 10, 2007
You need a help but is like is not of important to you.

you have to write the website correctly. eg. www.zenithsecurities.com.

if you are set send me an E-mail. onyekesimon@fastermail.com
Re: I Need Help On Dhtml by my2cents(m): 11:35am On Nov 12, 2007
jackback,

I assume this is the site you are referring to: http://www.zenithsecuritiesng.com

If this is the case, I traced the code to this file: http://www.zenithsecuritiesng.com/scrollbondprice.php

If you, "view source" and scroll to the bottom of the source page, you will see a "Dynamic Drive DHTML" section. This is the code that is used for the scroll. Also, if you view the source of the home page, and search for "gainers", you will notice there is a <script> section that references the above PHP page:

<script type="text/javascript">

//specify path to your external page:
var iframesrcbp="scrollbondprice.php"

//You may change most attributes of iframe tag below, such as width and height:
document.write('<iframe id="datamainbp" src="'+iframesrcbp+'" width="430px" height="150px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>')
</script>


I personally think there is a better way to present the scrolled information though. What happens, for instance, if visitors to the site turn off javascript (yeah I know, not many people do that, but it is still reason to give me as a developer pause)? Perhaps flash would be a better alternative? I dunno, I am just thinking out loud here. Besides, there are people like me who find such scrolling nauseous.

I hope this helps.
Re: I Need Help On Dhtml by deejay50: 7:40pm On Nov 13, 2007
The dynamic nature of the info means you can't use flash or any such animation. A simple marquee (or series of them) with dynamic variables, some CSS, DHTML would do the trick. I did something similar recently. Of course if its fed by a db then some server-side programming is needed. It's not too complicated.
Re: I Need Help On Dhtml by my2cents(m): 8:16pm On Nov 13, 2007
so deejay,

Are you saying one couldn't use a combination of Flash and AJAX (or what some people call AFLAX) to dynamically generate and display the information?

If so, I beg to differ.

(0) (Reply)

Web Programming: Which Computer Schools Are The Best / Vb6 Help / Submission Window Opens For Google Apps Developer Challenge , 24 Days Left

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (0) (1) (2) (3) (4) (5) (6) (7) (8) (9)

Nairaland - Copyright © 2005 - 2014 Oluwaseun Osewa. All rights reserved. See Nairalist and How To Advertise
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.