/    Sign up×
Community /Pin to ProfileBookmark

Where in the code is logo image being populated?

JS noob here. I just bought a CSS template with lots of JS in it. You can see it at [url]http://southafrica.to/Templates/travel/index.html[/url]

I cant for the life of me figure out where in the JS the TripAdvisor logo at the top-left is being populated.

Can you help??

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@KorApr 12.2011 — It is not JavaScript. It is the background set by a CSS class:
<i>
</i>h1 a {
background: [COLOR="Blue"]url("../images/logo.png")[/COLOR] no-repeat scroll 0 0 transparent;
display: block;
height: 55px;
overflow: hidden;
width: 270px;
}


You should use developer tools within your browsers to be able to check, follow, change in run time the codes. Firebug/Firefox or Web Developer Tool/IE, etc...
Copy linkTweet thisAlerts:
@yzerfonteinauthorApr 12.2011 — It is not JavaScript. It is the background set by a CSS class:
<i>
</i>h1 a {
background: [COLOR="Blue"]url("../images/logo.png")[/COLOR] no-repeat scroll 0 0 transparent;
display: block;
height: 55px;
overflow: hidden;
width: 270px;
}


You should use developer tools within your browsers to be able to check, follow, change in run time the codes. Firebug/Firefox or Web Developer Tool/IE, etc...[/QUOTE]


Thanks! So, easy! I'd never seen an image inserted via CSS before, is this common?

Have installed Firebug, now I must just learn how to use it!?
×

Success!

Help @yzerfontein 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...