473,545 Members | 2,663 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Re: Positioning a small gif file over another image - possible?

On Aug 12, 7:08 am, long_way <yilongwei....@ gmail.comwrote:
Hi there,
Hi,

Wouldn't it just be simpler to use Google maps?

I'm not overly familiar with greybox, but it should be fairly
straightforward to amend the code. You need to seperate the problem of
how to position the overlay with how to integrate it in greybox.

I'd steer clear of changing the code of greybox if possible - keeping
your changes inline with new functionality are likely to be a pain -
it would be easier to create a wrapper around GB_showImage(), however
greybox seems to work by creating a new frame - which you'd need to
the reference to position the marker. A simpler bet might be to open
an HTML page in greybox and embed the marker handling javascript
within it.

HTH

C.
Aug 12 '08 #1
1 1321
On Aug 12, 6:30*am, "C. (http://symcbean.blogsp ot.com/)"
<colin.mckin... @gmail.comwrote :
On Aug 12, 7:08 am, long_way <yilongwei....@ gmail.comwrote:
Hi there,

Hi,

Wouldn't it just be simpler to use Google maps?

I'm not overly familiar with greybox, but it should be fairly
straightforward to amend the code. You need to seperate the problem of
how to position the overlay with how to integrate it in greybox.

I'd steer clear of changing the code of greybox if possible - keeping
your changes inline with new functionality are likely to be a pain -
it would be easier to create a wrapper around GB_showImage(), however
greybox seems to work by creating a new frame - which you'd need to
the reference to position the marker. A simpler bet might be to open
an HTML page in greybox and embed the marker handling javascript
within it.

HTH

C.

Hi C.,

thank you for the response and your suggestions (and I apologize for
the delayed reply).
I was also considering Google maps instead, which has many advantages
(one can zoom-in etc) however I was hoping that only a slight
modification of the GreyBox code would allow creating another layer
and positioning a gif file there. It appears it is not as simple as I
have thought.

The Google map option has one disadvantage: for each place I would
have to create a separate html file and then display that html file in
the GreyBox pop up window... creating multiple html files is similar
to creating multiple maps (with markers indicating different places);
(in case of modified GreyBox code I would use one map and one marker
only), without the GreyBox modification the maps would take up more
space on the server and html files will depend on the availability of
the Google map service.

I agree, probably the best solution is to open a html file and then
manipulate the position of the market with JS in that html file (as
opposed to making changes in the GreyBox js code), because the size of
such html files will be much smaller than the size of multiple map
image files...

Thank you for your suggestions again!

best regards,

m
Aug 15 '08 #2

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

Similar topics

6
46659
by: Anna | last post by:
Hi all. I have a div with a scrollbar, which contains an image: <div style=" width:15em; height:10em; overflow:scroll;"> <img src="some.gif"/> </div> The image is rather small, it occupies only a small part of the div. This way the image appears in the top left corner of a div. I want it to appear in the center of the div.
9
32031
by: Bryan R. Meyer | last post by:
Hello Everyone, The problem of browser resizing has become an issue for me. While redesigning my webpage, I set the left and right margins to be auto so that my content would be centered. However, there are images that I used absolute positioning in order to place them in the appropriate location on my page. When I do a browser resize,...
4
2690
by: Jane Withnolastname | last post by:
I am trying to re-work an old site by replacing the html with css. On the main page, I have a logo image which I needed centred on the initial screen. I found the solution here: http://www.wpdfd.com/editorial/wpd0103.htm#toptip (the second example) The problem is, under the image is a large table. But using the above positioning, now the...
4
1896
by: salty_dogs | last post by:
i have a site that works well in ie6 for the pc. but i've also seen it (don't have a mac) with ie for mac and safari. both of these browsers produce different and unwanted results. the biggest problem is this: i wanted a particular look for the text, so i used images instead of html text. instead of using a different image for each state,...
4
1843
by: CJM | last post by:
I'm developing a web application, that has a left-sided navigation menu and a centre-right content area. The menu is static and therefore is in an INCLUDEd file. I'm wanting to add a link to a context-sensitive help page, and I'd like it to appear beneath the menu on the left-hand side. However, I'm not sure how to get it to do this......
17
3030
by: George Hester | last post by:
http://tinyurl.com/5uj6w The lower middle icon the "block" should not drop down when the mouse is over it. How can I stop that? Also the navigation divs both top and bottom should follow the scroll right. Both of these issues occur in IE 6 but not in IE 5.5. You can get the horizontal scroll bar for the window by increasing the size of...
4
7805
by: TheCeej | last post by:
I'm sorry to post what is ultimately a myspace problem, but I'm sure I'd still be having this problem with any html/css document, so the answer would more than likely be able to help anyone out. I'm pretty sure I know what the problem is already. I just don't know how to fix it. I'd be very grateful of any help. I'll post what I'm trying to...
4
4324
by: Christopera | last post by:
Hello, I have built a site that uses two divs, one verticle, and one horizontal as graphic style for the ite. The problem I am having is that if the browser is resized very small the divs are then smaller than the website is wide. I have tried fixed positioning but then i get the dreaded overlap when the browser is smaller than the website. ...
0
7425
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...
0
7682
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7935
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...
1
7449
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...
0
7780
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...
0
6009
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5351
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3479
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3465
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.