News: TinyPortal Release Schedule. Please read this update for More Info.

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

September 16, 2019, 08:04:50 AM

Login with username, password and session length

Recent

Members
  • Total Members: 3752
  • Latest: Alizee
Stats
  • Total Posts: 188888
  • Total Topics: 20752
  • Online Today: 50
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 34
Total: 34

Author Topic: A question  (Read 3958 times)

0 Members and 1 Guest are viewing this topic.

phatrat

  • Guest
A question
« on: April 12, 2005, 06:50:49 PM »
I had this DHTML code working great in a html test block and then it ceased to work, why would that be? The code effected all the hover links through out the entire site at the time.....which was fine...
just wondering...
thanx.. ;D

<html>
<head>
<style>
a:hover
{
text-transform:uppercase;
}
</style>
</head>

<body>
<a href="default.asp">Mouse over this link[/url]
</body>

</html>

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: A question
« Reply #1 on: April 12, 2005, 10:19:55 PM »
Well I'm not an expert on what DHTML is but to me in looks like all you've done is change the link hover effect with a style sheet property. Did you recently change themes or anything? I'm not sure how it works if your current theme already has a setting in it's CSS file and you're making another one.

Bjørn

  • Guest
Re: A question
« Reply #2 on: April 13, 2005, 06:09:19 AM »
I had this DHTML code working great in a html test block and then it ceased to work, why would that be? The code effected all the hover links through out the entire site at the time.....which was fine...
just wondering...
thanx.. ;D

<html>
<head>
<style>
a:hover
{
text-transform:uppercase;
}
</style>
</head>

<body>
<a href="default.asp">Mouse over this link[/url]
</body>

</html>

It proably fails because you defined <html> and <body> tags in it. you should instead use <style type="text/css"> for the defined style, and leave out all <html>,<head> and <body> tags.

The preview output is in a iframe, with not much tags - so it might work fine there.

phatrat

  • Guest
Re: A question
« Reply #3 on: April 13, 2005, 03:37:08 PM »
Well I'm not an expert on what DHTML is but to me in looks like all you've done is change the link hover effect with a style sheet property. Did you recently change themes or anything? I'm not sure how it works if your current theme already has a setting in it's CSS file and you're making another one.

I'm not an expert either IchBin.lol...thats why i'm playing with it. No I have not changed the theme.(helios tp) and no i did not have the setting already..
I will try blocs suggestion and see what i can do..
Thanx you two for repling!
phatrat

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: A question
« Reply #4 on: April 13, 2005, 03:50:02 PM »
I'm sure Bloc is correct. :) I forgot you don't have to included the page tags, just the format tags.

phatrat

  • Guest
Re: A question
« Reply #5 on: April 13, 2005, 04:18:12 PM »
I'm sure Bloc is correct. :) I forgot you don't have to included the page tags, just the format tags.

ok.. I'm just trying a few things to see what will work in the blocks..just testing things out and i have a ways to go as far as understanding the correct code in this matter..
thanx again!

phatrat

  • Guest
Re: A question
« Reply #6 on: April 13, 2005, 04:23:55 PM »
I'm sure Bloc is correct. :) I forgot you don't have to included the page tags, just the format tags.

ok.. I'm just trying a few things to see what will work in the blocks..just testing things out and i have a ways to go as far as understanding the correct code in this matter..
thanx again!

I would like to ask if one of you can show me how the code should look in a block in order to use it please.. or should i edit the index instead..I'll be able to go from there on the rest for the other test scripts i'm playing with.. I'm just trying to understand why or not different Dhtml scripts can or cant be used in the portal blocks..
Thanx again..
phatrat
« Last Edit: April 13, 2005, 06:20:58 PM by phatrat »

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: A question
« Reply #7 on: April 13, 2005, 06:19:36 PM »
<style type="text/css">
a:hover
{
text-transform:uppercase;
}
</style>