Solved

Interactive image

Posted on 2008-06-09
10
178 Views
Last Modified: 2013-12-24
Experts,

I need some help with vertical scrollers and images   Here's what I'd like to achieve:

- I'd like to place different images into a table
- when hovering over a particular image, I'd like another image (e.g. a "subfolder" image)  to pop up --see:   http://www.teamdev.com/quipukit/demo/popuplayer/PopupLayer.jsf
- however, instead of popping up the plain subfolder image, I'd really like to pop up a vertical scroller
- and, preferably, I'd like the subfolder image to be the background of the scroller.  

Or, in other words, can I place a vertical scroller onto an image?

Thanks,
Tom
0
Comment
Question by:ExpExchHelp
  • 6
  • 4
10 Comments
 
LVL 9

Expert Comment

by:Rob Siklos
ID: 21745591
Yeah, you can just pop up a div, and make the image the background of the div (using css)
0
 

Author Comment

by:ExpExchHelp
ID: 21745727
Rob263:

thanks for the prompt reply... I'm afraid I'm not following you.   Could you pls provide an example?

EEH
0
 
LVL 9

Expert Comment

by:Rob Siklos
ID: 21745765
You will probably need to learn a bit of css and javascript (try www.w3schools.com)

Somewhere in your page, you can put a div like this:

<div style="display: none;"></div>

Then, when the user hovers over the image, you can dynamically set the contents of the div (the innerHtml property) using javascript.  Maybe you can put an iframe there and set the url to some predefined page.  There are a few ways to do it.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:ExpExchHelp
ID: 21746198
Yes, that sounds like good advice.  

Ok, I'm trying to "stitch" things together.

1. I have a nice "tooltip" example
2. I have a very nice "scroller" example

If you don't mind you could please provide me help as to how I could replace the tooltip's text with the scroller.

Scroller.zip includes the following:

Tooltip:
- example.htm (tooltip)
- alttxt.txt & alttxt.js

Scroller:
- endorsements.htm is the scroller container
- endorsementsProfessional-text is used to create scrolling text
- subfolder CSS_scripts includes the required files for scroller

Now, I've already merged the "endorsements.htm" into "example.htm"
- The scroller runs fine and the tooltip pops up ok when hovering over "In which browser..."

My question:  How do I replace the written text (tooltip) with the scroller (make 1 out of 2)?

Any recommendations?

Tom
0
 

Author Comment

by:ExpExchHelp
ID: 21746295
Oops... forgot to include the attachment.

I had to change the file extensions.   Pls change the following
- main.XLS to main.js (in subfolder)
- style.XLS to style.js (in subfolder)
- alttxt.XLS to alttxt.js
- endorsements.DOC to endorsements.htm
- endorsementsProfessional-text.DOC to endorsementsProfessional-text.htm
- example.DOC to example.htm
scroller.zip
0
 
LVL 9

Expert Comment

by:Rob Siklos
ID: 21746326
That's too much trouble man.  Can't you post it to a website somewhere?
0
 

Author Comment

by:ExpExchHelp
ID: 21746915
rob263:

No problem, rob263.   I've posted a zip file at the following URL
http://www.savefile.com/files/1599963

Again, here's my goal:
- open up example.htm
- I've already merged a working scroller (endorsements.htm) in the example.htm.
- example.htm also has some text "In which browser will this run? that throws a tooltip.

My goal is to replace the tooltip text with the scoller.   Is this doable?   I really appreciate your support on this!!!

Thanks,
Tom
0
 
LVL 9

Accepted Solution

by:
Rob Siklos earned 500 total points
ID: 21746955

<table align="center" width="500">
<tr> 
<td align="right" width="50%"><a href="javascript:void(0)" 
 
onmouseover="writetxt('<iframe id=\'datamain\' src=\'endorsementsProfessional-text.htm\' width=\'400px\' height=\'150px\' marginwidth=\'0\' marginheight=\'0\' hspace=\'0\' vspace=\'0\' frameborder=\'0\' scrolling=\'no\'></iframe>')" 
onmouseout="writetxt(0)">
In which browser<br>will this run?</a>
</td>
</tr>
</table>

Open in new window

0
 

Author Comment

by:ExpExchHelp
ID: 21747318
rob263:

TOTALLY TOTALLY COLL!!!!

Thousand thanks to your prompt and superb help.

Tom
0
 

Author Closing Comment

by:ExpExchHelp
ID: 31465500
110% solution!
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question