473,804 Members | 3,004 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Beginner question: External JS to write text to layer?

Hello, Group,

I hope it's OK for me to ask this question here, since I'm a "dabbler", not
a "programmer ".

What I'd like to do, if it's possible, is find a reference or
example/template that will show me how to create a "quote gallery" that
uses a mouseover/mouseout to show/hide text in a layer - the idea is that,
when the visitor mouses over a quote title, the appropriate text is called
from a separate file and shows in a reserved and pre-positioned layer. I
have it working using a show/hide layer function (the titles are image
files of decorative text - the page layout uses <DIV></DIV> and
<SPAN></SPAN> to set up "layers" such that a mouseOver of the image (title)
makes the appropriate text show up in a reserved space). The problem is
that all the text is in the HTML page itself, so the page is getting
incredibly *long*. I'd like to have the text reside in a separate file, so
that the page only has the HTML and JavaScript and the text of the quotes
is "pulled from" a separate file.

I don't know what the technical (i.e. short) name for this would be, so my
web searches have not been successful. I have books at home, but the
examples are either far to simplistic, or far too abstract, for me to
figure out how to apply them to my situation.

I'd also like this to be compatable, if possible, with IE4 and above.
((From the examples I've seen, Netscape etc. cross-compatability is a
nightmare beyond my skill level, so I'm admittedly doing the lazy thing and
going for compatability with IE 4 and above, since that encompasses
something like 98% of all my visitors.))

Thank you in advance :) !
(And I hope this made some sense!)

--
- Kris M. Krieger
Jul 23 '05 #1
2 1622
Look at this page:

http://www.howtocreate.co.uk/loadingExternalData.html

Robert

Jul 23 '05 #2
Kris Krieger wrote:
Hello, Group,

I hope it's OK for me to ask this question here, since I'm a "dabbler", not a "programmer ".

What I'd like to do, if it's possible, is find a reference or
example/template that will show me how to create a "quote gallery" that uses a mouseover/mouseout to show/hide text in a layer - the idea is that, when the visitor mouses over a quote title, the appropriate text is called from a separate file and shows in a reserved and pre-positioned layer. I have it working using a show/hide layer function (the titles are image files of decorative text - the page layout uses <DIV></DIV> and
<SPAN></SPAN> to set up "layers" such that a mouseOver of the image (title) makes the appropriate text show up in a reserved space). The problem is that all the text is in the HTML page itself, so the page is getting
incredibly *long*. I'd like to have the text reside in a separate file, so that the page only has the HTML and JavaScript and the text of the quotes is "pulled from" a separate file.

I don't know what the technical (i.e. short) name for this would be, so my web searches have not been successful. I have books at home, but the examples are either far to simplistic, or far too abstract, for me to figure out how to apply them to my situation.

I'd also like this to be compatable, if possible, with IE4 and above. ((From the examples I've seen, Netscape etc. cross-compatability is a nightmare beyond my skill level, so I'm admittedly doing the lazy thing and going for compatability with IE 4 and above, since that encompasses
something like 98% of all my visitors.))

Thank you in advance :) !
(And I hope this made some sense!)

--
- Kris M. Krieger


Kris...analyze *this*.

http://www.dyn-web.com/

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

38
5095
by: Shaun McKinnon | last post by:
HI...Here's my problem...I have a popup window that loads when i want it to, but it's not sized properly. I've set the size, but it doesn't seem to work. I've been on 8 different websites to find out what i'm doing wrong, and so far it seems i'm doing it the right way. Here's my code...any suggestions would be appreciated. <script language="javascript"> <!-- window.open("256fx/index.htm", "", "height=400, width=600"); //-->
44
4291
by: lester | last post by:
a pre-beginner's question: what is the pros and cons of .net, compared to ++ I am wondering what can I get if I continue to learn C# after I have learned C --> C++ --> C# ?? I think there must be many know the answer here. thanks
7
1410
by: .net lear | last post by:
if I have an object, say a recipe, which is added to a database, whose responsibility is it to add to the db? The recipe or something else? Let's say I want to delete a recipe? Does the recipe kill itself? Or does the database or something else do the removal? Where does the responsibility lie? Thanks.
2
1169
by: Paul | last post by:
Hi, I'm curious how others would deal with something I'm building. The app itself is a form of diary; it allows the organisation of diary entries and a number of other data types. Each diary entry is listed under its title, and double clicking brings up the full entry and options for editing. Each entry and associated option is stored in a diary object instance. I'm wondering how best to store the persistent data. One option is to a...
2
1401
by: OrdinarySpore | last post by:
Hi. I am having a problem with a simple IF statment on this Javascript. I found this script on scriptsource and want to see if I can add an IF statment to display a "congradulations" line of text if the 5 questions on the Quiz are correct. I'm stumped and I think it's somthing simple but I thought it would work if I added the statement after the "Check Answer fuction like this ------- IF var score 5) { } Please help if you can. ...
11
2258
by: RoB | last post by:
Hi all, I'm coming from the Informix world and I have a customer using DB2 8.2.3 for Linux on Red Hat Enterprise ES. The customer is performing filesystem backups of the containers etc every night but they are not shutting down the database server while doing this. I only assume that this most likelly would leave an inconsistant backup image as there is nothing assuring that the modified pages in the buffer pool get written to disk...
1
1429
by: siresoth666 | last post by:
Greeting to everyone, I am a rookie at ASP and this may seem like a very simpleton question to most but I am clueless about it. I copied a code from a tutorial on to Flash its ASP but it does not work. It tells me that I have an operand error. The code is for a preloader in which the numbers run from 0% to 100% on a flash animation. Everything works, except the % numbers do not move. It stays stuck at 99% which is the inital text entered...
7
2303
by: Andy B | last post by:
I have a class I am creating for data access. I need to access controls from inside the class that are on a particular page. How do I do this? or is creating an instance of the page class and using FindControl the only way to do it?
13
1489
by: Thomas Troeger | last post by:
Hi, Sorry I've posted a similar question some weeks ago, but I got no answers. I want to embed a Python application on a device with limited resources, esp. storage limitations. Is there a way to reduce the Python interpreter to a set of modules that's urgently needed? Or is there a method to have gzipped modules that are unzipped on the fly into memory when they're accessed? That would be even better. Additionally, is there a Python...
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9577
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10325
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10315
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10075
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4295
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.