|
Posted by Els on 11/06/47 11:43
Chris Ianson wrote:
> "Els" <els.aNOSPAM@tiscali.nl> wrote in message
> news:ecsp6czgs5rt.ofl1lhj3hi95.dlg@40tude.net...
>
>> So you're basically contradicting yourself.
>> a) you want the page to remain in the position it is in when the
>> visitor presses the link to jump to the right
>> b) you want the text/map/etc to remain in view at the top of the
>> window
>
> Sorry, it's incredibly hard to explain what I want to do, because it's a new
> web site project
"Web site" as in out on the world wide web, targeted at the masses?
You do know that there are loads of people who surf on 800x600 screens
and plenty that have JavaScript turned off? And that there are people
not having a Windows computer?
> that is copyright and has to remain confidential
> intellectual property.
*Luigi alert* :P
> I have uploaded an *example* of the *sort of thing*
> I need to achieve, but that example is nothing to do with the finished idea.
>
> All I wanted was for the main page not to scroll when jumping within the
> iframe. That's all.
And I did not do that at all. What I did was define exactly the level
the page should scroll to upon clicking the links. If the visitor
would have a 2 meter high monitor, and have the image right in the
bottom when clicking one of the links, it would jump up 2 meter to sit
in the top left corner.
> What you have done is propose 2 ways of it not scrolling quite so much. 1
> way it scrolls a little way down but not as far.
That only is so because you didn't try the 2 meter high monitor.
> The other way, it stays at
> the top of the image components you inserted.
Always. It's not what you want I just discovered.
> So, ideally 'A' the page would remain in the same position, as for reasons
> again I won't go into, it will be lined up nicely when they arrive at the
> page. And 'B' that position will show the text/map at the top of the
> *iframe* (not the window).
Still, A and B can't be had at the same time.
See, if your visitor has scrolled the "iframe" so high that the link
itself is in the top right corner, (and therefore half the image and
anything above it is off-screen), you would have to choose between:
a) leave the page in the same position
b) bring back the top half of the image and whatever is above it back
into the window (i.e. jumping vertically)
Cannot have both at the same time. Impossible.
> I shouldn't expect much as I'm not paying you! :P
I'm not stopping you from starting to ;-)
>>> Is that a layout table or something similar?
>>
>> Wash your mouth with soap! <g>
>> There's no table on example #4 (or 3, 2 or 1 for that matter), not a
>> 'layout' one, nor any other type.
>
> I'm interested in knowing how you achieved it. I don't claim to be a
> computer or web page programmer, so what method is your code employing?
Nothing that can't be seen right there in the code...
> I've had a look at it and I can't fathom out how you've got the components
> to stay in place at the top.
I hope I'm not spoiling your Sunday, but.. if after reading my code
you can't see how I did it, you don't know enough HTML or CSS to do
this project, and you need to hire someone else.
>> Of course it is. You're seeing a border now, aren't you? Just change
>> the properties. They won't be table borders though, as I didn't use
>> tables :P
>
> So I couldn't get a 3D border (light top & left border, dark bottom &
> right)?
Let me repeat: "Just change the properties".
Really, you need to learn HTML and CSS before you can do anything with
this project.
> The other Q - if you have a mo - is: Is there an easy way to 'copy & paste'
> my current iframe contents into your version of the panorama box? The
> problem is, my current image has not just 2 layout cells on it saying
> 'start' and 'end', but about 15 layout cells, and 30 hotspot hyperlinks.
No, there is no easy way. As I've explained before - I split each of
your links into two parts:
a) the link (the <a href="">)
b) the anchor (the <a id="" name="">)
It's a precise and carefully constructed combination of relative and
absolute positioned links and anchors, and it certainly won't work
just copy pasting what you already have.
Maybe Neredbojias solution works with that, I don't know - JavaScript
is one of many languages I don't speak.
> Any easy way to 'dump' that inside your solution, straight out of my iframe?
Nope.
Let me tell you what I think would be close to what you want to
achieve - like yours, just an example:
Imagine an iframe within a page - browser window high enough to show
the entire iframe. In the iframe, a worldmap that doesn't fit inside
the frame, and with scrollbars you can move around it both vertically
and horizontally. Cities on the world map are red dots, and linked.
Scrolling to Seattle - clicking on Seattle makes the map jump to
Toronto, clicking on Toronto makes the map jump to Rio de Janeiro,
clicking Rio jumps to Amsterdam. All this time, the iframe and the
page stay put, it's just the worldmap that jumps around both
vertically and horizontally.
If this is the scenario you're after - my solution will *not* work for
you, even after you fully understand what I did. You will need
JavaScript, and I can't help you with that. (my method only works for
*horizontal* 'iframe' scrolling while remaining one certain
pre-determined vertical position for the outer page)
>> (note to Jonathan: I'm starting to see how you managed to munge the
>> Gufus thread with this one ;-) )
>
> Sorry, what can I say, I'm a trouble-maker.
It's not the trouble that reminds me of Luigi.
> Hopefully one day you'll find my site when it takes over the world, and
> realise what 'that guy' was trying to achieve! I'll try to remember to give
> you the URL when it launches.
It's sentences like that that remind me of Luigi <g>
--
Els http://locusmeus.com/
Navigation:
[Reply to this message]
|