/    Sign up×
Community /Pin to ProfileBookmark

Simple Java Help

Hi im new to Java, i have a java script thingy on my site and i want to add a class to it….. this is what i have:

<script language=”JavaScript” src=”status_image.php?base_url=admin&x=1&deptid=0&”></script>

is it possible?

Thanks

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@Declan1991Jul 11.2008 — Note the difference between Java and JavaScript, totally different.

What do you mean, add a class? Are you sure your not getting Java and JavaScript mixed up?
Copy linkTweet thisAlerts:
@nathan1authorJul 11.2008 — Thanks, im wanting to add a reflect to it, i have it set up...and i need to add the class to the image....is there any way to do this?

thanks again
Copy linkTweet thisAlerts:
@Declan1991Jul 11.2008 — Do you mean:<i>
</i>&lt;img src="whatever" [b]class="whatever"[/b]&gt;

If you could try to be a little more specific, I could probably be more help. I presume you are using a copy and paste code and it tells you to add a class of a certain name to every image you want this effect to apply to?
Copy linkTweet thisAlerts:
@nathan1authorJul 11.2008 — Thats what im wanting, i have it setup so currently i have images <img src"thesorce" class="reflect"> but i have a javascript for the image;

<script language="JavaScript" src="status_image.php?base_url=admin&x=1&deptid=0&"></script>


and i want to add the same class="reflect" to this, can you do this?

Thanks
×

Success!

Help @nathan1 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.15,
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,
)...