Web Design Forums

HTML and CSS Help

Having problems with these web design scripting? Ask here.

embedded btn script conflicts with css of links



Site of the Month Nominations
ENTER YOUR SITE NOW!

Reply
 
LinkBack Thread Tools
Old February 4 '10, 01:00 AM (#1)
gravital is offline
New Member!
 
gravital's Avatar
 
Join Date: February 2010
Posts: 5
gravital is an unknown quantity at this point
embedded btn script conflicts with css of links

<script type="text/javascript" src="https://www.ClickBook.net/dev/bc.nsf/cb_mode1.js?Open&title=Click here to schedule an appointment&type=button&uid=5FAA3F10231BCE36CA2576 A40074A51D"></script>

this script from clickbook.net (a scheduling service) conflicts with the style for my navigation. it is placed within a div tag with in the body.

I have attached the html file and the css file. It effects all browsers except IE. it seems to override the "up" color and the decoration of all links on this specific page. Any help or explanation would be greatly appreciated.


Thank you

Last edited by gravital; February 8 '10 at 01:56 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4 '10, 11:22 AM (#2)
mlseim is offline
WDF Staff
 
mlseim's Avatar
 
Join Date: April 2004
Location: Cottage Grove, Minnesota
Posts: 3,401
mlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud of
Can you give us the actual link to your site?
It's hard to install attached files because we don't have all of your images and files.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4 '10, 12:48 PM (#3)
gravital is offline
New Member!
 
gravital's Avatar
 
Join Date: February 2010
Posts: 5
gravital is an unknown quantity at this point
Of course, www.wacksalonandmassage.com/sched.html , however at this time i have not uploaded the updated sched.html page as i have not received an ok to upload it with the conflict. So the conflict won't be present on the site but at least you can see what it is generally supposed to look like. Thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4 '10, 01:43 PM (#4)
mlseim is offline
WDF Staff
 
mlseim's Avatar
 
Join Date: April 2004
Location: Cottage Grove, Minnesota
Posts: 3,401
mlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud of
Copy "sched.html", rename it "sched2.html" and put the javascript in that one.
That way, we can see it, but it won't affect the original "sched.html" file.

We can display "sched.html" and then insert the "2" in there to see your other page.

I'm curious to see what their Javascripting looks like when the page renders.
It might be a case where you need to customize something in the clickbook
account? Do they offer any way to customize or build your own buttons?


.

Last edited by mlseim; February 4 '10 at 01:47 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4 '10, 05:20 PM (#5)
gravital is offline
New Member!
 
gravital's Avatar
 
Join Date: February 2010
Posts: 5
gravital is an unknown quantity at this point
Ok, I have uploaded the sched2.html.
There is another way you can use a created button but it uses the same script as far as i can tell.

Thank you so much for your prompt attention and replies! It is greatly appreciated.

Joey

Last edited by gravital; February 8 '10 at 01:57 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4 '10, 06:31 PM (#6)
mlseim is offline
WDF Staff
 
mlseim's Avatar
 
Join Date: April 2004
Location: Cottage Grove, Minnesota
Posts: 3,401
mlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud of
Here is what you'll have to do ...

In your "wack.css" file, change this:

a {
text-decoration: none;
color: #900
}

a:hover {
color: #592D00;
}


to this:

a.nav:link,a.nav:active,a.nav:visited {
background-color: transparent;
font-family: "Century Gothic", "Century Schoolbook", Century, sans-serif, serif;
color:#900;
font-weight:bold;
font-size:11px;
text-decoration: none;
}
a.nav:hover {
background-color: transparent;
font-family: "Century Gothic", "Century Schoolbook", Century, sans-serif, serif;
color: #592D00;
font-weight:bold;
font-size:11px;
text-decoration: none;
}



Then ....

For ALL of your links, you have to specify the "nav" class ....

<li><a href="hair.html" class="nav">hair</a></li>


The result is that nothing can over-rule your class, so your links will stay the way you want.



.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4 '10, 09:18 PM (#7)
gravital is offline
New Member!
 
gravital's Avatar
 
Join Date: February 2010
Posts: 5
gravital is an unknown quantity at this point
So initially my assumption was that the script had it's own style which was overriding my css. Is this correct? If so why was the page css being overridden in all browsers except IE? Is this standard with embedded scripts? (I suppose it all depends on how the scripts are written) I realize that IE has its own way of doing things that is not always standard, just curious if you know. Thank you so much for your help. I will try this immediately! Again Thank you!
Joey
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 4 '10, 10:23 PM (#8)
mlseim is offline
WDF Staff
 
mlseim's Avatar
 
Join Date: April 2004
Location: Cottage Grove, Minnesota
Posts: 3,401
mlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud of
Joey,
I'm actually sort of guessing.
I think it's because you created a "generic" CSS rule for all "a" tags.
It gets over-ruled by the other script.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 5 '10, 02:41 PM (#9)
gravital is offline
New Member!
 
gravital's Avatar
 
Join Date: February 2010
Posts: 5
gravital is an unknown quantity at this point
ok, so what i ended up doing was specifying an "a" and an "a:hover" rule for each Div ID that was affected. That way I did not have to add a class to every link I had on the page. Its funny that on the last site i created I made my style sheet this way (with the "a" and "a:hover" tags specifyed for each ID that had links in it. Then I realized that I could make a generic rule that would style all links everywhere and I thought "man this will be easy, I just cut out a whole bunch of code from my style sheet" . Alas, I must go back to styling each div seperately if i insert the book now script. I am still curious as to why their script is overriding the general rule for the links. Thank you again for your help! The conflict is cured and I must say that I am impressed that I got help so quickly. I tried out another forum and still have not received a reply so, Again, Thanks a Bunch!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 5 '10, 06:04 PM (#10)
mlseim is offline
WDF Staff
 
mlseim's Avatar
 
Join Date: April 2004
Location: Cottage Grove, Minnesota
Posts: 3,401
mlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud ofmlseim has much to be proud of
There's a thing called "inline CSS".

CSS is defined in the order in which it loads.
So, your CSS loads at the top of your script.

If you put some CSS inside a tag further in your page, that "inline CSS"
will over-ride the CSS for that div.

Example, say you have this in your main CSS file:

#content{
font-family:arial;
font-size:12pt;
}

Then, on a different page that uses the same CSS file, you might want a smaller font:

<div id="content" style="font-size:10pt;"> stuff stuff stuff </div>

That inline style will take precedence for that div (at that moment).

I think the same thing is happening with the code you insert, but for some reason,
and I'm not sure, maybe the way it loads, that code is overwriting the CSS for everything.
You are correct that if you specifically define the styling for various divs, it will leave
those untouched.

Again, just a theory ... I'm not really sure about when the inserted Javascript actually
gets loaded and rendered. It looks like the loading and rendering might be different
between IE and FF .... thus the differences you mentioned in post #1.

That's what this forum is all about ... exchanging ideas and learning from others.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  Web Design Forums » Programming Help » HTML and CSS Help

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
No underline links with CSS Abstract HTML and CSS Help 7 October 18 '08 11:05 AM
Please Help! CSS Script not working In IE7 bwolv HTML and CSS Help 3 January 12 '07 04:23 PM
Script links way too small duck444 HTML and CSS Help 12 February 19 '06 07:26 PM
script to add links to html? hackdesigner PHP 5 December 4 '05 05:17 PM

 
User Infomation
Your Avatar

Site Of The Month

Ticket Cake
Ticket Cake

Ticket Cake is a drupal based event ticketing platform. It features that ability to browse events and share them.

Nominate Your Site Now!

Advertisement
WolfCMS.org

Latest Articles
- by RickM
- by bfsog

Advertisement

Partner Links



All times are GMT -4. The time now is 02:40 AM.


WebDesignForums.net is Copyright © 2010 RikeMedia.

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163