473,788 Members | 2,814 Online
Bytes | Software Development & Data Engineering Community
+ 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 3626
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="javascrip t:..." 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="what ever">> 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******** ***********@new s.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="javascrip t:..." 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=b each>. 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
3338
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 used was http://www.microsoft.com/windows/ie/downloads/critical/ie6sp1/default.asp After pressing to refresh the page six times, I noticed missing images on the page. This problem seems to be very reproducible. I coded a sample ASP page...
11
1730
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 loading the images. How is this situation best dealt with? Thank you for any assistance you can offer. JS
4
3748
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 did a preload script. But then the user has to sit for 5 minutes waiting for 63 images to download! My images are about 640x480 and average 100kb. Is this too much for one page to load? Should I load my slideshow into differerent windows? If so,...
15
2336
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
1621
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');" onmouseout="InactivateImage('MyImage');" href="javascript:void(FollowLink('MyImage'));">
2
2995
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 time? Before the page is loaded? The browser decision? If the visitors goes, before the procedure is over, to another page having a link to the same js file, will the other page allows for the rest of the
27
2280
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 continue through the HTML until Image1 has loaded COMPLETELY. When Image1 is done, Image2 BEGINS loading. When Image2 is 100% done, only then does Image 3 begin... and so on...
6
2567
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. When I click on a thumbnail, a JavaScript function is executed to change the picture in the main view. Since some of these images are around 300KB, it takes up to a couple of seconds to load the image. In Internet Explorer, one can see the image...
1
2250
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 accessible to javascript disabled users, it was previously using an interstitial page. Now I want to hide the page content and replace it (visually) with the interstitial message while the user awaits their results (which could take up to 20seconds)....
0
9656
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10173
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9967
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
2
3674
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.