473,473 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

loading images into current page

thanks to all who helped steer me away from 'slicing' photoshop images to
positioning with css.

new question:

i have a web page that has a navbar, simple text links. each of these links
will eventually load a series of thumbnail images. clicking on the
thumbnails will show a larger version in an area to the right. although the
page isn't really functional yet, you can view it at www.momeara.com.

the main question is this: as you click the thumbnails the larger image
appears at the right. how do i do this without making a new page for each
image? can i just load a new image into the page without having to make a
link to a completely new page?
Jul 20 '05 #1
4 3612
salty_dogs wrote:
although the page isn't really functional yet, you can view it at
www.momeara.com.


"not really functional" is an understatement.

Some advice:

(*) The language attribute for <script> is deprecated.
(*) JScript is a Microsoft specific JavaScript dialect - poo is undefined
for at least some other browsers
(*) Seeing that a link will take them to "poo" does not a good impression
make on your visitors.
(*) http://validator.w3.org/
(*) Popups suck. REALLY suck. http://www.allmyfaqs.com/faq.pl?AnySizeDesign
(*) href="javascript:..." sucks too. Put a real URL in there. If you need to
trigger JavaScript from a link (hint: You don't becuase you don't need to
open a new window), use the onclick event.
(*) Lots of people run at 800x600 or less anyway. Its really dumb to open a
window wider then the screen!
(*) The alt attribute is required for images, and well done - you've put on
in. Its a shame that its blank, making the link useless if images are not
available. http://ppewww.ph.gla.ac.uk/%7Eflavell/alt/alt-text.html
(*) OK, so technically the link should look something like: _>_, but most
browsers don't handle /> correctly (which is why XHTML 1.0 Appendix C
'works')

I don't know how bad the actual site is, I didn't feel like parsing the
JScript in my head and keying in the new URL manually.

--
David Dorward http://dorward.me.uk/
Jul 20 '05 #2
thanks david:

not to make excuses, i had never even looked at an html document before last
week. i'm really only doing this as a way to present my portfolio in a job
search. i've decided not to spend a 1000 clams on a hard copy. anyway...

i've taken out the lang attribute, now its just <script>

i really don't know where 'poo' came from, and you're right, i wouldn't want
to be linking to 'poo.' looking at other js, the word after 'function' is
user defined? so if i use <<onclick="whatever">> this will call the <<
function whatever() >> in the script? i guess i really don't have time to
learn js for this project.

i don't like the popup thing either, but maybe if the index page closes
'onmousedown' it will seem more like a resizing? i see the point about
800x600. i'm going to be very specific about how this site is used and who
sees it. if the firm i'm applying to doesn't have monitors set to 1024x768
or above, i really don't think there going to be doing the kind of work i'm
interested in. (cad/cam/graphics) what do you use?

finally, how do you suppress the note that pops up if hovering over an image
with the 'alt' attribute set? that i find more annoying than if the image
were not there.

i guess we all have to start somewhere. thanks for your comments
mike

"David Dorward" <do*****@yahoo.com> wrote in message
news:bo*******************@news.demon.co.uk...
salty_dogs wrote:
although the page isn't really functional yet, you can view it at
www.momeara.com.
"not really functional" is an understatement.

Some advice:

(*) The language attribute for <script> is deprecated.
(*) JScript is a Microsoft specific JavaScript dialect - poo is undefined
for at least some other browsers
(*) Seeing that a link will take them to "poo" does not a good impression
make on your visitors.
(*) http://validator.w3.org/
(*) Popups suck. REALLY suck.

http://www.allmyfaqs.com/faq.pl?AnySizeDesign (*) href="javascript:..." sucks too. Put a real URL in there. If you need to trigger JavaScript from a link (hint: You don't becuase you don't need to
open a new window), use the onclick event.
(*) Lots of people run at 800x600 or less anyway. Its really dumb to open a window wider then the screen!
(*) The alt attribute is required for images, and well done - you've put on in. Its a shame that its blank, making the link useless if images are not
available. http://ppewww.ph.gla.ac.uk/%7Eflavell/alt/alt-text.html
(*) OK, so technically the link should look something like: _>_, but most
browsers don't handle /> correctly (which is why XHTML 1.0 Appendix C
'works')

I don't know how bad the actual site is, I didn't feel like parsing the
JScript in my head and keying in the new URL manually.

--
David Dorward http://dorward.me.uk/

Jul 20 '05 #3
Quoth the raven named salty_dogs:

<snip>
finally, how do you suppress the note that pops up if hovering over an image
with the 'alt' attribute set? that i find more annoying than if the image
were not there.


Commonly referred to as a tooltip. Most browsers render any text set
in the title attribute. Certain broken operating system components
mistakenly display the alt attribute if there is no title attribute.

Type this into a page:
<img title="This is title" alt="This is alt" src=... >

and see what happens in various browsers. Remove the title= and look
again, especially in Internet Explorer.

<snip TOFU>

--
-bts
-This space intentionally left blank.

Jul 20 '05 #4
salty_dogs wrote:

the main question is this: as you click the thumbnails the larger
image appears at the right. how do i do this without making a new
page for each image? can i just load a new image into the page
without having to make a link to a completely new page?


Yes you could, but you run into additional problems (like bookmarks,
visitors coming from search engines) so that I wouldn't suggest doing
so. Better is to do it server-side; have one "template" (e.g. a PHP,
ASP, PY, PL page) and handle it with URLs like <photo.php?id=beach>. If
you want to switch via DHTML (the sub-optimal solution), use DHTML (a
combination of absolutely-positioned div-layers put over each other,
their display-property dynamically changing).

--
Google Blogoscoped
http://blog.outer-court.com
Jul 20 '05 #5

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

Similar topics

6
by: Ed | last post by:
I first noticed this in my own app. Images would show up missing randomly on IE 6.0.2800.1106 on Windows 2000 server. I then was able to repro this problem on Microsoft's website!!! The page I...
11
by: JS | last post by:
Dear Group, I have a webpage of small images. At the bottom is a Javascript function. If someone scrolls impatiently to the function link, when the action is complete the html does not continue...
4
by: Adrian MacNair | last post by:
Hi, I created an image gallery which displays 63 images in a slideshow. The problem is that the show was slow because each image loaded one at a time during the show. No problem right? I just...
15
by: Geoff Cox | last post by:
Hello I have following type of code in the header function pre_load_pics() { if (document.images) { var image1 = new Image(400,265); image1.scr = "pic1.jpg";
4
by: VR | last post by:
Hi, I am trying to have a menu item (which is an HTML img) to change as a mouse moves over it. So, my code looks something like this: <a onmouseover="ActivateImage('MyImage');"...
2
by: Jean Pierre Daviau | last post by:
When I have something like this in a js file. listeImg = new Array(); listeImg = new Image(w,h); listeImg.src = "centre1.jpg"; etc Are the images loaded after the page is loaded? In the same...
27
by: Chris Tomlinson | last post by:
Hi, is there any way to specify the sequence in which images load on a web page? More specifically, here is what we need to achieve: Image1 starts loading first and the browser does not...
6
by: Ivan Bútora | last post by:
I have recently looked at http://alistapart.com/articles/imagegallery to implement a simple picture gallery on a webpage that I'm working on. Everything works fine; however, I have one question....
1
by: sirjaybishop | last post by:
Hi I have an issue in some browsers when linking to style sheets or images in some browsers using a DOM script after I have submitted a form. I am trying to make the form submission process...
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...
1
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...
0
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...
1
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...
0
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...
0
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 ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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...

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.