/    Sign up×
Community /Pin to ProfileBookmark

Tags for all browsers part II

Thanks for previous answers!

I’m still changing the code i my homepage because I want user with other browsers than Internet Explorer to view the content. When I use Firefox and click on a link to view images, nothing happens! Could it be because of this code:

<a href=”#” onClick=”MenuControll(1);”><font id=”m1″>PORTFOLIO</font></a>

Or this:

document.images[0].src=namn.src;

I use this code to view preloaded images

Are there any better alterantives?

Finnaly, why are links underlined i Firefox and not in IE. I use this code in a .css file?

#text02{font-family:verdana,arial,sans-serif;
font-size:11px;
text-decoration:none;
line-height:16px;
color:#000000;}

Lots of questians lots of answers, please

Regards
Nyfiken

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@FangMar 20.2005 — Not enough information, full code or page link
Copy linkTweet thisAlerts:
@nyfikenauthorMar 20.2005 — [i]Originally posted by Fang [/i]

[B]Not enough information, full code or page link [/B][/QUOTE]


var ie = document.all

var bildladdad="false";

var bild1=new Image();

var bild2=new Image();

var bild3=new Image();

var bild4=new Image();

bild1.src="bilder/hus63_4b.jpg";

bild2.src="bilder/hus63_5b.jpg";

bild3.src="bilder/hus63_1b.jpg";

bild4.src="bilder/hus63_3b.jpg";

parent.frames.mainmenu.GomLagerB(1);

function VisaBild(namn){

if(bildladdad){
TaBortLager();
document.images[0].src=namn.src;
}

}

and for the click problem...

<!-- undermeny -->

<div id="lager05" style="position:absolute;top:350px;left:204px;visibility:visible;z-index:3">

<table border="0"><tr><td><img src="bilder/dubbelpil.gif"></td>

<td><a href="#" onClick="VisaBild(bild1);"><font id="text02">Perspektiv</font></a></td>

<td><a href="#" onClick="VisaBild(bild2);"><font id="text02">Perspektiv</font></a></td>

<td><a href="#" onClick="VisaBild(bild3);"><font id="text02">Planlösning</font></a></td>

<td><a href="#" onClick="VisaBild(bild4);"><font id="text02">Interiör</font></a></td>

<td><!--a href="#" onClick="VisaLager();"><font id="text02">Info</font></a--></td>

</tr></table></div>


Hope this code helps solve the problem

Nyfiken
Copy linkTweet thisAlerts:
@FangMar 20.2005 — Use style sheets not [URL=http://www.w3.org/TR/REC-html40/present/graphics.html#h-15.2]font[/URL]

<td><a href="#" onClick="VisaBild(bild1);">[COLOR=red]<font id="text02">Perspektiv</font>[/COLOR]</a></td>

var bild=new Image();
bild[1].src="bilder/hus63_4b.jpg";
bild[2].src="bilder/hus63_5b.jpg";
bild[3].src="bilder/hus63_1b.jpg";
bild[4].src="bilder/hus63_3b.jpg";

function VisaBild(namn){
if(bildladdad){
TaBortLager();
document.images[0].src=bild[namn].src;
}
}

&lt;ul&gt;
&lt;li&gt;&lt;a href="#" onclick="VisaBild(1);" id="text02"&gt;Perspektiv&lt;/a&gt;&lt;/li&gt;
.
.
&lt;/ul&gt;


The full code would be more helpful
Copy linkTweet thisAlerts:
@Khalid_AliMar 20.2005 — [i]Originally posted by Fang [/i]

[B]

The full code would be more helpful [/B]
[/QUOTE]


This is the second time you are asking for full code, and I have asked the same in his previous post. WOnder whats the problem...it wastes time on our behalf to keep on repeating same request over and over.
Copy linkTweet thisAlerts:
@nyfikenauthorMar 21.2005 — [i]Originally posted by Khalid Ali [/i]

[B]This is the second time you are asking for full code, and I have asked the same in his previous post. WOnder whats the problem...it wastes time on our behalf to keep on repeating same request over and over. [/B][/QUOTE]


Thanks for all help! All problems are gone! It worked better when I removed the font tag!

Nyfiken?
×

Success!

Help @nyfiken 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.18,
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,
)...