I previously had found a nice Javascript script online that would automatically scroll text from the bottom of the page to the top kind of like they did in "Star Wars". I improvised that Javascript script so that there were 4 buttons below a big textarea where the text automatically would scroll. The text was famous love songs. Each button represented a different love song. When the user clicked on a different button, using DHTML and Javascript, the contents of the textarea would automatically be replaced with a new song that would scroll from top to bottom. The webpage would not completely refresh, but was coded using DHTML to just update the textbox area and randomly put in a different banner in the background. My girlfriend and I created like 10 different banners that could randomly be updated using DHTML whenever a different song was chosen.
My question is there any way to try to convert this to C# in the .NET framwork? If no I might try to do it instead in flash. I really hate to force a user to have to install the flash player if they don't have it.
I realize some things will still have to be done in DHTML, but I am a little disgusted with the javascript. The Javascript will work great in Internet Explorer, but in Firefox, Safari, and the Opera web browsers it completely chokes on me and does different behaviors for each. I don't think anything will work in Safari. I was thinking of just converting this code to C# and that way I have more uniformity on how this is coded and don't have to worry about my Javascript code working correctly in 5 different browsers. The code to make this work doesn't change 5 times in C# and won't behave different in 5 different browsers because C# will be rendered the same way regardless it is server side code.
I also had issues after a while with the rate of the scrolling text to keep increasing each time a button was pressed so by the 20th time you clicked a button it would fly through all the lyrics in about 1.5 seconds, and just apear as one giant blurb before it could be readable.