切换/案例如何正确使用它 [英] Switch/case how to use it correctly

查看:42
本文介绍了切换/案例如何正确使用它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找在我的照片库中实现开关/案例。

到目前为止我见过的大部分网站都只展示了基础知识。

没有真正的实际例子。

正如brucie用他的butterlies和bug一样,他使用开关/盒子,但在

php。


访客点击缩略图选项并显示大拇指。

选择拇指显示较大的图片和描述。


自从选择基本上是在一个表单中做出选择,

如何应用已经选择的内容,出现在适当的位置?

在示例中,它们是所有人都喜欢使用简单的警报信息作为例子。


我需要的是一个如何操作案例并将

编码指向适当区域的示例。


如果有人有一个可以更好地解释这个的网站,请发布。

I''ve been looking at implementing switch/case on my photo gallery.
Most of the sites I''ve seen so far, only show the bare basics.
With no real practical examples.
As brucie does with his butterlies and bugs, he uses switch/case, but in
php.

Visitor clicks on a thumbnail selection and the thumbs appear.
Selection of a thumb shows the larger pic AND description.

Since the selection is basically making a choice as within a form, how does
one go about applying what has been chosen, to appear in the proper place?
In the examples, they all favor using simple alert messages as examples.

What I need, is an example of how to manipulate the cases and direct the
coding to the proper areas.

If anyone has a site that would explain this better, please post it.

推荐答案

周六,2005年1月29日09:45:17 -0600,Richard< An ******* @ 127.001>写道:
On Sat, 29 Jan 2005 09:45:17 -0600, Richard <An*******@127.001> wrote:
我一直在寻找在我的照片库上实现开关/案例。
I''ve been looking at implementing switch/case on my photo gallery.




为什么?你真的想为画廊中的每一张图片写一个案例条款吗?


[snip]


Mike


-

Michael Winter

替换.invalid与.uk通过电子邮件回复。



Why? Do you really want to write a case clause for every single image in
the gallery?

[snip]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.


2005年1月29日星期六16:27:54 GMT Michael Winter写道:
On Sat, 29 Jan 2005 16:27:54 GMT Michael Winter wrote:
2005年1月29日星期六09:45:17 -0600,Richard< An ******* @ 127.001>写道:
On Sat, 29 Jan 2005 09:45:17 -0600, Richard <An*******@127.001> wrote:
我一直在寻找在我的照片库中实现开关/案例。
I''ve been looking at implementing switch/case on my photo gallery.



为什么?你真的想为画廊中的每一张图片写一个案例条款吗?
[snip]


Why? Do you really want to write a case clause for every single image
in
the gallery? [snip]




为每张图片写一个交换例程会不容易?

我看到这就是切换/案例的目的。

如果/那么简单的写作方式。

我宁愿写onclick =" dothis() "然后

onclick =" document.image.src =" blah blah"对于每一个项目。



Would it not be easier than writing a swap routine for each and every image?
As I see it, that''s the purpose of switch/case.
A simpler way of writing if/then.
I would much rather write onclick="dothis()" then
onclick="document.image.src="blah blah" for each and every item.


Richard写道:
Richard wrote:
我一直在寻找在我的照片上实现开关/案例画廊。
到目前为止我见过的大部分网站都只显示了基础知识。
没有真正的实际例子。
正如brucie用他的软糖和虫子做的那样,他使用开关/ case,但在
php。

switch / case构造是最后的方法,imho。

Mick


访客点击缩略图选项并出现拇指。
选择拇指显示更大的图片和描述。

由于选择基本上是在表单中做出选择,如何应用已选择的内容,出现在适当的位置?
在示例中,他们都喜欢使用简单的警报消息作为示例。

我需要的是一个如何操作案例并将
编码指​​向正确的示例区域。

如果有人有一个可以更好地解释这个问题的网站,请发布。
I''ve been looking at implementing switch/case on my photo gallery.
Most of the sites I''ve seen so far, only show the bare basics.
With no real practical examples.
As brucie does with his butterlies and bugs, he uses switch/case, but in
php.
The "switch/case" construct is the method of last resort, imho.
Mick

Visitor clicks on a thumbnail selection and the thumbs appear.
Selection of a thumb shows the larger pic AND description.

Since the selection is basically making a choice as within a form, how does
one go about applying what has been chosen, to appear in the proper place?
In the examples, they all favor using simple alert messages as examples.

What I need, is an example of how to manipulate the cases and direct the
coding to the proper areas.

If anyone has a site that would explain this better, please post it.



这篇关于切换/案例如何正确使用它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆