/    Sign up×
Community /Pin to ProfileBookmark

Javascript into php

On my webpage i use javascript to help the user pick out what case, and what color they want their case to be. This is basically what I do:

The onchange property on the first select invokes a function which figures out what they selected, and changes the contents of the second select depending on the choice in the first select, and changes the image.

When the user changes the second select, it invokes another fuction that also displays a picture depending on what color they chose.

This is done mainly using these type of statements:

[quote]

this.options[this.selectedIndex].lastChild.nodeValue=”blah”

[/quote]

This is to figure out what they have in the select.
Then to change the color I use an if statement using:

[quote]

document.getElementById(“blah”).lastChild.nodeValue=”blah”

[/quote]

this is all contained in one page of my site: [url]http://sigmaseven.net/p4_28_economy.htm[/url]

Now, since javascript does not work on 5 percent of the community, and I want my site to be accesible to all, is their anyway to do this in php? Any help would be awesome.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@philerimosJun 22.2004 — Hi,

Your use of Javascript to achieve the effects on your page is very interesting. Did you consider using ActionScript in conjunction with Flash to render the same effects ? If nearly everybody has a Flash plug-in already downloaded (which is mostly likely the case) your problem might be solved.
×

Success!

Help @theuedimaster spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...