473,569 Members | 2,615 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

By jove! an answer to my dilemma perhaps?

http://www.codeave.com/javascript/image_click.html

With this guy's method of selecting an image, and displaying the results, I
do believe I can accomplish what I want now.

If my thinking is correct, I can just use a simple image swap to place the
output in the desired division?

Going one step farther, including a description with a mouse over before the
visitor clicks on the link.

Comments welcomed.

Jul 23 '05 #1
8 1167
Richard wrote:
http://www.codeave.com/javascript/image_click.html

With this guy's method of selecting an image, and displaying the results, I
do believe I can accomplish what I want now.

If my thinking is correct, I can just use a simple image swap to place the
output in the desired division?

Going one step farther, including a description with a mouse over before the
visitor clicks on the link.


The code could be optimized:

<img... onclick="docume nt.images['large'].src=this.src">

That replaces 50 lines of code...
Mick

Jul 23 '05 #2

"Richard" <An*******@127. 001> wrote in message
news:cs******** @news2.newsguy. com...
http://www.codeave.com/javascript/image_click.html

With this guy's method of selecting an image, and displaying the results, I do believe I can accomplish what I want now.

If my thinking is correct, I can just use a simple image swap to place the
output in the desired division?

Going one step farther, including a description with a mouse over before the visitor clicks on the link.

Comments welcomed.


Working out quite well actually.
It is a basic image swap with a twist.
However, in the coding i want to show the full size image rather than just
another thumbnail.

if(clicks==0){d ocument.images['large'].src=image0.src ;}

What's the proper syntax for adding +big to the src code?
that is, this code displays "images/pic1.jpg" but I want to display
"images/pic1big.jpg" instead.

Jul 23 '05 #3

"Mick White" <mw***********@ rochester.rr.co m> wrote in message
news:JN******** *************@t wister.nyroc.rr .com...
Richard wrote:
http://www.codeave.com/javascript/image_click.html

With this guy's method of selecting an image, and displaying the results, I do believe I can accomplish what I want now.

If my thinking is correct, I can just use a simple image swap to place the output in the desired division?

Going one step farther, including a description with a mouse over before the visitor clicks on the link.


The code could be optimized:

<img... onclick="docume nt.images['large'].src=this.src">

That replaces 50 lines of code...
Mick


When learning, one takes it one step at a time.
I plan on cleaning up the code later after it all comes together the way I
want.
I could also put the click checking lines into a loop which would eliminate
a lot of repetitive coding.
Jul 23 '05 #4
Richard wrote:

Working out quite well actually.
It is a basic image swap with a twist.
However, in the coding i want to show the full size image rather than just
another thumbnail.

if(clicks==0){d ocument.images['large'].src=image0.src ;}

What's the proper syntax for adding +big to the src code?
that is, this code displays "images/pic1.jpg" but I want to display
"images/pic1big.jpg" instead.

function image_click(cli cks){
document.images['large'].src="images/pic"+clicks+"bi g.jpg"
}
No need for : if(clicks==0) etc. Just build the src string using the
"clicks" parameter, as above.

Mick
Jul 23 '05 #5
In article <cs********@new s2.newsguy.com> , An*******@127.0 01 says...

"Mick White" <mw***********@ rochester.rr.co m> wrote in message
news:JN******** *************@t wister.nyroc.rr .com...
Richard wrote:
http://www.codeave.com/javascript/image_click.html

With this guy's method of selecting an image, and displaying the results, I do believe I can accomplish what I want now.

If my thinking is correct, I can just use a simple image swap to place the output in the desired division?

Going one step farther, including a description with a mouse over before the visitor clicks on the link.


The code could be optimized:

<img... onclick="docume nt.images['large'].src=this.src">

That replaces 50 lines of code...
Mick


When learning, one takes it one step at a time.


You're not learning though, are you, RtS? You're just borrowing code
from others far more talented that you.

--
Hywel http://kibo.org.uk/
I do not eat quiche.
Jul 23 '05 #6

"Mick White" <mw***********@ rochester.rr.co m> wrote in message
news:Zt******** ***********@twi ster.nyroc.rr.c om...
Richard wrote:

Working out quite well actually.
It is a basic image swap with a twist.
However, in the coding i want to show the full size image rather than just another thumbnail.

if(clicks==0){d ocument.images['large'].src=image0.src ;}

What's the proper syntax for adding +big to the src code?
that is, this code displays "images/pic1.jpg" but I want to display
"images/pic1big.jpg" instead.

function image_click(cli cks){
document.images['large'].src="images/pic"+clicks+"bi g.jpg"
}
No need for : if(clicks==0) etc. Just build the src string using the
"clicks" parameter, as above.

Mick


Thanks mike. I'll put that to good use.
I beleive the guy was merely showing the simplicity rather than the extreme.
He could have put it all in loops to make it easier.
Jul 23 '05 #7

"Hywel Jenkins" <hy**********@h otmail.com> wrote in message
news:MP******** *************** *@news.individu al.net...
In article <cs********@new s2.newsguy.com> , An*******@127.0 01 says...

"Mick White" <mw***********@ rochester.rr.co m> wrote in message
news:JN******** *************@t wister.nyroc.rr .com...
Richard wrote:

> http://www.codeave.com/javascript/image_click.html
>
> With this guy's method of selecting an image, and displaying the

results, I
> do believe I can accomplish what I want now.
>
> If my thinking is correct, I can just use a simple image swap to
place the
> output in the desired division?
>
> Going one step farther, including a description with a mouse over
before the
> visitor clicks on the link.
>

The code could be optimized:

<img... onclick="docume nt.images['large'].src=this.src">

That replaces 50 lines of code...
Mick


When learning, one takes it one step at a time.


You're not learning though, are you, RtS? You're just borrowing code
from others far more talented that you.


Wellll duhhhhh. Don't we all?
"Borrowed" coding appears to be a fairly accepted on the web from what I've
seen so far.
Hell, for every code you write, I'll bet I can find 50 examples of the same
thing elsewhere.
And 40 of them will be copyrighted no less.
Jul 23 '05 #8
Richard wrote:
"Hywel Jenkins" <hy**********@h otmail.com> wrote in message
news:MP******** *************** *@news.individu al.net...
In article <cs********@new s2.newsguy.com> , An*******@127.0 01 says...
"Mick White" <mw***********@ rochester.rr.co m> wrote in message
news:JN***** *************** *@twister.nyroc .rr.com...

Richard wrote:
<--snip-->
When learning, one takes it one step at a time.


You're not learning though, are you, RtS? You're just borrowing code
from others far more talented that you.

Wellll duhhhhh. Don't we all?
"Borrowed" coding appears to be a fairly accepted on the web from what I've
seen so far.
Hell, for every code you write, I'll bet I can find 50 examples of the same
thing elsewhere.
And 40 of them will be copyrighted no less.


Thats easy enough to prove your assumption (which is incorrect).

Search the archives for "dynamicall y load JS Files" and then find me 50
examples of that code on the web, and 40 of them that are copyrighted.

Either back up your assinine assumptions or STFU
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq
Jul 23 '05 #9

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

Similar topics

7
15990
by: Bruce W...1 | last post by:
I made my first PHP page that uses includes. http://php.didah.com/main.php But I can't get rid of a gap (about 5 pixels) between the table rows. The content of each include file is one line like this: <img src="images/nav.gif" width="100" height="600" hspace="0" vspace="0" border="0"> No head or body tags. Just a 100 x 600 gif image. ...
0
1699
by: A. B., Khalid | last post by:
Hello all. After the effort of getting most of Python 2.3.4 Final compiled in MinGW (see: http://mail.python.org/pipermail/python-list/2004-June/225967.html, and get the patch and read more about it here: http://jove.prohosting.com/iwave/ipython/pyMinGW.html), allow me to report that it is now also possible to compile and build most of...
3
2810
by: Kevin Dahlhausen | last post by:
Could anyone post a simple setup.py script that uses a SWIG interface to C++ code and the mingw compiler? I followed some online samples, and am using the setup.cfg file to specify swig-c++=1. Trying to build using mingw out of the cygwin environment but the final call to link the extension calls directly to 'cc' which I think should...
1
346
by: Fernando Libonati | last post by:
Hello, after read your message I put hands on work and try to get python2.3.4 sources compiled with DevC++4.9.9 and I've failed. Could you explain a bit more especifically how to get the .dsp / .dsw files into work? Regards, Fernando
4
2002
by: A. B., Khalid | last post by:
Hello all. This is to inform those interested in getting Python to compile in MinGW that the pyMinGW patch is now able to help compile both Python 2.3.4 Final and Python 2.4a3 and the resulting MinGW Python passes the regrtests as follows. #----------------------------------------- # Python 2.3.4 Final:
1
1163
by: vincent delft | last post by:
I've a module written in C and the associated setup.py. Work fine (and compile fine with mvc) with Python 2.3.x Now I've installed Python 2.4 (all the rest unchanged) When I try to compile it, I've got a message saying that .NET SDK must be installed. ???? Am I the only one having this problem (not found by looking for in Google) ? Is...
188
8299
by: Ilias Lazaridis | last post by:
I'm a newcomer to python: - E01: The Java Failure - May Python Helps? http://groups-beta.google.com/group/comp.lang.python/msg/75f0c5c35374f553 - I've download (as suggested) the python 2.4 installer for windows. Now I have problems to compile python extension that some packages
137
6995
by: Philippe C. Martin | last post by:
I apologize in advance for launching this post but I might get enlightment somehow (PS: I am _very_ agnostic ;-). - 1) I do not consider my intelligence/education above average - 2) I am very pragmatic - 3) I usually move forward when I get the gut feeling I am correct - 4) Most likely because of 1), I usually do not manage to fully explain...
3
2617
by: bearophileHUGS | last post by:
To use Pyrex, SWIG and the like on a Win2K I have followed this way: http://jove.prohosting.com/iwave/ipython/pyMinGW.html I already had MinGW 3.4.2, so I have decompressed the Python 2.4.2 sources, I have merged in the pyMinGW patch, and I have run the global compilation with: make -f python24.mak all
4
2640
by: homsan toft | last post by:
I've tried the below code with MSVC and Comeau online compiler. Both complain that operator<< for Outer<part<size_t> >::inner is not defined. So how do I declare it without doing full specialization? I've tried a template on any type, like Outer<AnyT>::inner (see below) Also tried a template on the templated type: Outer<part<X>...
0
7710
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...
0
7935
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. ...
1
7692
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
7992
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
6313
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
5519
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
3677
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
3666
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
969
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...

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.