473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

<IMG> with other images over it

Hello,

I'm building a website which contains a floor plan of my house. I want
to indicate if some lights in my house are on or off. I thought I found
a good way to do it with filter.lights.addPoint (IE only) but this has
a limit of 10, which is not enough.

Has anyone has an idea how to archive this ? How can I add images to an
existing image on a certain position ?

Some sample code would be highly appreciated because I'm not really a
web developer...

thnx
johanvdv

Aug 17 '06 #1
4 1312
johanvdv wrote:
Hello,

I'm building a website which contains a floor plan of my house. I want
to indicate if some lights in my house are on or off. I thought I found
a good way to do it with filter.lights.addPoint (IE only) but this has
a limit of 10, which is not enough.

Has anyone has an idea how to archive this ? How can I add images to an
existing image on a certain position ?
Something like this should get you started:

<img src="http://www.google.com/images/hp0.gif"
width="400" height="250" border="1"
style="position: absolute; top: 50px; left: 40px; z-index: 0">

<img src="http://www.google.com/images/hp1.gif"
width="100" height="40" border="1"
style="position: absolute; top: 100px; left: 80px; z-index: 1">

<img src="http://www.google.com/images/hp2.gif"
width="50" height="30" border="1"
style="position: absolute; top: 250px; left: 150px; z-index: 2">

Hope this helps,

--
Bart

Aug 17 '06 #2
johanvdv wrote :
Hello,

I'm building a website which contains a floor plan of my house. I want
to indicate if some lights in my house are on or off. I thought I found
a good way to do it with filter.lights.addPoint (IE only) but this has
a limit of 10, which is not enough.

Has anyone has an idea how to archive this ? How can I add images to an
existing image on a certain position ?

Some sample code would be highly appreciated because I'm not really a
web developer...

thnx
johanvdv
In this type of UI design, Bart is right, the "position:absolute;" CSS
property is what you need. Play around with DIV's and IMG's to build
your interface the way you want it, then use Javascript to change
color, or replace the "src" attribute for any images that would
represent a changing state element of you interface.

Aug 17 '06 #3
"johanvdv" <jo**************@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
Hello,

I'm building a website which contains a floor plan of my house. I want
to indicate if some lights in my house are on or off.
You should also include the plan of your intrusion detection devices, and a
button to switch them off.
scnr ;-)

Michel
Aug 18 '06 #4

Yanick wrote:
johanvdv wrote :
Hello,

I'm building a website which contains a floor plan of my house. I want
to indicate if some lights in my house are on or off. I thought I found
a good way to do it with filter.lights.addPoint (IE only) but this has
a limit of 10, which is not enough.

Has anyone has an idea how to archive this ? How can I add images to an
existing image on a certain position ?

Some sample code would be highly appreciated because I'm not really a
web developer...

thnx
johanvdv

In this type of UI design, Bart is right, the "position:absolute;" CSS
property is what you need. Play around with DIV's and IMG's to build
your interface the way you want it, then use Javascript to change
color, or replace the "src" attribute for any images that would
represent a changing state element of you interface.
And you will have to change the visibility attribute to the divs
containing each image to show or hide them, all the while figuring out
the z-level numbers to see what images should go on top of which other
images, and in what order.

Aug 19 '06 #5

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

Similar topics

7
by: Zhang Weiwu | last post by:
Hello. This is problem puzzled me a long time. I wish to organize some block elements and let them flow one after each other like text. Think about a album, I wish the album have 12 thumbnails,...
8
by: KS | last post by:
Just to show some code to show the consept. <img id="date" onclick="javascript:show_calendar();" src="/PlexSysWeb/images/show-calendar.gif" width=20 height=18 border=0> What i want the...
15
by: Gérard Talbot | last post by:
Hello all, I'd like to know and understand the difference between, say, <img src="/ImageFilename.png" width="123" height="456" alt=""> and <img src="/ImageFilename.png" style="width:...
3
by: Henry Johnson | last post by:
Okay - I'm spinning my wheels on this one... can someone help me figure out how to programmatically populate a table cell as follows (from C# code-behind)? I've tried using a Literal control in the...
4
by: SammyBar | last post by:
Hi all, I wonder is it possible to upload the content of an <imgfield to a server. The content of the <imgwas downloaded from a web site different from the one it should be uploaded. The image...
4
by: Jon Slaughter | last post by:
I have a captcha system going and for some reason when I use <?php $s = ""; for($i = 0; $i < 10; $i++) { $s = $s.rand(0,9); } $_SESSION = $s; $fn = '/Login/Register/Captcha.php'; echo '<img...
0
by: rrs5 | last post by:
Hello, I am a mod_python newbie. I hope this is a right forum to post this question. I have a python publisher script that generates a dynamic html file with a couple of images. How do I...
4
by: bgold12 | last post by:
Hey, I've come across a strange behaviour that shows itself in IE 7.0 and Firefox 3 and probably other browsers. In the code below, which is a complete HTML document which validates as XHTML 1.0...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.