Nani Cheri
Jul 1 2005, 07:50 AM
| | HI,
If anybody worked with dreamweaver, and succesfully used JS codes and CSS in their website, please reply and tell me how to, cause when I try too put Javascripts it won't work....I also tried to put an textarea with scrollbars in a table...put in design view the content won't stay in the widths and heights I typt in...can someone help?
thanks |
Reply
sachavdk
Jul 11 2005, 12:34 AM
No the best is if you work with dreamweaver (I've experienced this) to work either with code or with WYSIWYG. Not combining the two. But if you wrote code, the best way is to test it in your webbrowser. But what wouldn't work with your css and javascript?
Reply
sachavdk
Jul 11 2005, 12:53 AM
Since I can't edit my previous post, I'm gonna have to post another reply. I'm sorry for that but I wanted to preview it but I posted it  . When you are using CSS, make a stylescheet (ie in notepad) and ie name it "standard.css". It contains this as example: CODE .titel { color: 898899; font-size: 25px; font-family: verdana; cursor:default; border-style:solid; border-width:0; vertical-align:middle; padding-left:10; } .inhoud { color: white; font-size: 13px; font-family: verdana; cursor:default; border-width:0; vertical-align:middle; } .inhoud a:link { color:#ffffff; text-decoration:none; font-size: 13px; } .inhoud a:visited { color:#ffffff; text-decoration:none; font-size: 13px; } .inhoud a:active { color:#ffffff; text-decoration:none; font-size: 13px; } .inhoud a:hover { color:#ffffff; text-decoration:none; font-size: 13px; } This is a piece of a css sheet I am making. Now in the <head></head> part of your html code you put following line of code: <link rel="stylesheet" type="text/css" href="directory/standard.css"> that's it. Now as example I want to add the inhoud style to a tablecell. CODE <html> <head> <title>Document title</title> <link rel="stylesheet" type="text/css" href="directory/standard.css"> </head> <body> <table> <tr> <td class="inhoud">Some text</td> </tr> </table> </body> </html> now dreamweaver will automatically give you a list with possible css styles from the stylesheets you've included when you type class=", then you can choose your style with the up and down arrow keys and confirm with a tab-key push. Dreamweaver will automatically insert the chosen style and add the final quote ("). For you're javascript, I don't know what code you want to use but here's a little example: CODE <html> <head> <title>document title</title> <script language="javascript" type="text/javascript"> function showexample() { alert("This is an example of the use of a JavaScript code"); } </script> </head> <body> <input type="button" value="Click me for the example" onClick="javascript:showexample();"> </body> </html> Hope this helps a bit but if you have other questions, ask 
Reply
Tyssen
Jul 11 2005, 01:42 AM
QUOTE(sachavdk @ Jul 11 2005, 10:53 AM) CODE .inhoud a:link { color:#ffffff; text-decoration:none; font-size: 13px; } .inhoud a:visited { color:#ffffff; text-decoration:none; font-size: 13px; } .inhoud a:active { color:#ffffff; text-decoration:none; font-size: 13px; } .inhoud a:hover { color:#ffffff; text-decoration:none; font-size: 13px; }
Can I just point out that the reason why Cascading Style Sheets are called that is cos the styles cascade down from one element to another. If you set a style on your <a> tag, all states of the tag will pick up that style. You only need to add additional rules for when you want something different to occur. So taking the above example, you would be better off doing: CODE .inhoud a { color:#ffffff; text-decoration:none; font-size: 13px; } .inhoud a:visited { color: red; } .inhoud a:active { color:green; } .inhoud a:hover { color:black; text-decoration:underline; }
Also, you've specified a font in your .titel and .inhoud classes, whereas if you do this: CODE body { font-family: verdana; } it will flow down through every element in your document and you don't have to keep repeating it.
Reply
sachavdk
Jul 11 2005, 03:39 PM
QUOTE(Tyssen @ Jul 11 2005, 03:42 AM) Can I just point out that the reason why Cascading Style Sheets are called that is cos the styles cascade down from one element to another. If you set a style on your <a> tag, all states of the tag will pick up that style. You only need to add additional rules for when you want something different to occur. So taking the above example, you would be better off doing: CODE .inhoud a { color:#ffffff; text-decoration:none; font-size: 13px; } .inhoud a:visited { color: red; } .inhoud a:active { color:green; } .inhoud a:hover { color:black; text-decoration:underline; }
Also, you've specified a font in your .titel and .inhoud classes, whereas if you do this: CODE body { font-family: verdana; } it will flow down through every element in your document and you don't have to keep repeating it. Yes, in some cases you're right. But maybe in this case this isn't really a good example. I think yours is better  . But this is a piece from a site I am making and the style MAY NOT occur on every element since I work with tables and php that generates different tables, and the style depends on the cellcontent. But you said something I didn't knew. However I work with dreamweaver and the fill-list automatically appears when you type < I hadn't noticed the class attribute for links. So I learned something new as well  .
Reply
magiccode9
Nov 5 2005, 04:32 PM
in dreamweaver, you can add javascript and style sheet as following: in the windows menu, open the style sheet window, then in the bottom of the small window, you can see that have some icon, hover over the mouse on each icon, a tooltip will show up that tell you what they are function. let say add new style, a window will be promped you whether to to select make a internal or external one. about javascript, you can pop-down the menu called insert(that may be the menu on left or right, but no so far, coz i'am using it in work, not home,  ), then, find an item call insert javascipt. also, a small window open that asked you to write vbscript or javsscript ( and version you use ). when you have finished it. a small achor icon will show up in you document. just like a layer. - hope this help
Reply
Nani Cheri
Nov 6 2005, 08:28 PM
QUOTE(magiccode9 @ Nov 5 2005, 06:32 PM) in dreamweaver, you can add javascript and style sheet as following: in the windows menu, open the style sheet window, then in the bottom of the small window, you can see that have some icon, hover over the mouse on each icon, a tooltip will show up that tell you what they are function. let say add new style, a window will be promped you whether to to select make a internal or external one. about javascript, you can pop-down the menu called insert(that may be the menu on left or right, but no so far, coz i'am using it in work, not home,  ), then, find an item call insert javascipt. also, a small window open that asked you to write vbscript or javsscript ( and version you use ). when you have finished it. a small achor icon will show up in you document. just like a layer. - hope this help thanks thats really short and clear explained...Ill try that 2!! thanks everyone
Reply
andres
Nov 7 2005, 01:42 AM
sometimes when you're using dreamweaver (DW), some css styles aren't previewed (on DW window). for example, if you write as a CSS code: a:link {color: cornflowerblue; text-decoration: none} instead, you should use the following text to do the same and be able to preview it: a {color: cornflowerblue; text-decoration: none} plus, any JavaScript code can't be preview on the DW window.
Reply
cragllo
Nov 11 2005, 04:18 PM
What you see in design view often is not what it will look like in-browser, you need to test it in-browser to see the end result. But Dreamweaver 8 is getting better that this, and it even shows images that are linved via a url
Reply
Nani Cheri
Apr 2 2006, 01:11 PM
QUOTE(cragllo @ Nov 11 2005, 06:18 PM)  What you see in design view often is not what it will look like in-browser, you need to test it in-browser to see the end result. But Dreamweaver 8 is getting better that this, and it even shows images that are linved via a url  really? yeah I actually find it very bad you can't see javascript result in DW, you have to test it constantly. I have this problem to with a calendar i inserted with javacript in a table. But only in browser I saw that my table stretch with other the calendar, so some of my content in another column strech with it. And in DW itself it looks good. goes the calendar isnt visible yet. don't know what to do about that. But I think theres no solution for that right?
Reply
Recent Queries:--
how to put javascript to dreamweaver? - 47.05 hr back. (1)
Similar Topics
Keywords : put, javascript, css, dreamweaver
- Dreamweaver Cs3: How To Link Content To Layers/apdivs
(5)
Dreamweaver Cs3 Help With Php
dunno where to post topic. webdesign based but software? (1) i have installed cs3 and its good with html and such but when im previewing .php files its showing
not connected to internet. do i still need to install php,mysql and such? xamp right?....
Javascript Conflict
JScrollpane & Lightwindow / Lightbox (1) Hi Guys, I am trying to run multiple javascript files on my site to achieve two different
functions. There seems to be a conflict, depending on the order that i run the files it will cause
one function to work and the not to. The conflicts I get are from Lightwindow and JScrollPane
. I have read that this can be an onload problem. Has anyone had this same problem? I noticed it
also happens when i mix JscrollPane and Lightbox v2. Any help or suggestions would be appreciated,
Cheers.....
What Program Do You Use To Design Your Web?
Frontpage, Dreamweaver, a good text editor? (82) I personaly choose frontpage because its easy to use but.....I use dreamweaver for PHP.....
Add A Javascript Feedback Form On Your Web Page
This is how to do it (6) So i was looking for a feedback form in javascript and i couldn't find one so ive made one for
you guys here we go! So this feedback form will ask for name, emails address and their comments
First of all add this code in between the and tags CODE <script
name="JavaScript"> <!-- function SendEmail() { var toaddy =
'name@domain.com'; var subject = 'JS Form Submission'; var mailer =
'mailto:' + toaddy + '?subject=' + subject + '&body=' +
'Name%20is\....
Accessing Mysql From Javascript
Javascript to communicate with database (4) I found a nice program which allows you to put quizzes on your web site. You can design your own
questions, set the layout of your page, and there is also a possibility of having the results
emailed to you. It further offers a facility to store the results and all that, all you have to do
is put a link in the program, telling it which page takes care of that. However, when I look at the
HTML code the program generates, I see that most of it is written in Javascript. Obviously, it also
uses variable names, but as I don't know any Java, I was wondering if those variab....
A (hopefully) Simple Dreamweaver Question
(4) Hello all. I've been using Dreamweaver for a couple of months now and I'm learning as I go.
I'm pretty much totally new to making websites so I'm happy with how things are going at
the moment. I feel there is something super obvious that I can't work out how to do though.
This is my site. http://www.scottishdreamteam.trap17.com/ I'd like to be able to have like a
banner down one side so that I could have all of my links in there and possibly the adverts. The
way it is just now means that I have to push the table and important stuff of the....
Web Page Tree Menu: Style Sheet - Javascript
(5) I got bored and lazy working on the things that I should do... so I end up creating this tree menu
for anyone to use if they find it interesting. Well the idea is to create a tree menu in a webage.
Instead of those linear menu it would be better to add more dynamic to your webpage with a tree
menu. Others use image rollovers. As expecte the tree menu should behave like the one in Windows
Explorer. When you click a node depending on its state it will pull down or pull up its chlid nodes.
I have achieved by exploiting one style sheet property, display . Basically this s....
Best Design Solution
Dreamweaver or .NET? (3) the best way, but mostly the easiest way to design a web site is using Macromedia Dreamweaver 8,
with extension pack 2. another way is by using Microsoft .NET studio, but it is much difficult. so
what shoull it be?....
Dreamweaver, Front Page
(23) Hey guys I use dreamweaver to code my sites, I heard even though the "hardcore" people dont use it,
its at least better than front page. And what I was wondering is are there any website
building/helping tools or programs besides those two? I havent heard of any but I figured there
might be a few more. The other question I had was ive been hearing alot about CSS and layers. I
know what CSS is and have been trying to incorperate that into my site when/wherever possible
However what are layers? And can you reccomend a good book on webdesign? I dont want a "for dummi....
Dreamweaver
Dreamweaver's a good Webdesigning Studio (22) I recently downloaded Macromedia's Dreamweaver 8, and I can say that it is the greatest
webdesigner that the world has ever seen! The only problem is that it costs too much money in my
tastes, but otherwise it is perfect! Does anyone know of a webdesigning studio that does not
cost any money and that can be downloaded off the internet? I tried using Notepad++ (search Google,
I cannot recall the site) and it is a coder, but not a webdesign. It doesn't actually show you
what the site will end up looking like, but it shows you colour-coded codes for your sit....
Help Required Regarding Adding Javascript In A Web
Info. (2) Hey...I have a java code of RSS feeds.When i put it in my website , on front page,and when i
preview,there is blank place (where news should be) and there is a yellow bar on internet
explorer..there is a message.. "To Help protect your security,Internet explorer has resticted this
file from showing active content that could access your computer.Click here for more options" And
when i click to that bar, there is option "ALOW BLOCKED CONTENT" THen it shows those news. I am
very upset.Because i dont want that bar.Can you please help me by telling the way , that there comes....
Dreamweaver On Linux
(15) dreamweaver on linux I have a little problem, i recently started tu run linux on my
computer but i can't find any prgram similar to dreamweaver to maintain my site any ideas? ....
Dreamweaver And Fireworks
How to make an good banner and logo? (6) Hi please help me. I got Dreamweaver, Fireworks, and Flash Professinal and they are all the best
(8.0) how can I get an great or good banner and logo? I still have very stupid ones. Like basic. It
looks like a kid that drew it. Really. So please if you have any tips, videos, websites, and more or
teaching me how to be good at makeing Banners, logos, and images. Please help me. /sad.gif'
border='0' style='vertical-align:middle' alt='sad.gif' /> ....
Dreamweaver Permissions Issue
Access denied when trying to FTP (5) Okay, so I was trying to FTP these files over dreamweaver today... and it seemed to be working fine.
But then, certain files won't let me transfer from my hard drive to the internet, or the other
way around. It gives me this error message: QUOTE An FTP error occured - cannot put form1.html.
Access denied. The file may not exist, or there could be a permission problem. Anyway, I know
that the file does indeed exist. I've opened it on my hard-drive... and it is there. But it
won't let me upload this one or certain other ones with the FTP. So I went o....
Frontpage And Dreamweaver
(34) Hey, for a few years now I have been using Microsoft Frontpage, and lately the latest one 2003.
Whenver I go to download a cool website template, it always say "This website template was made with
Macromedia Dreamweaver". I have tried Dreamweaver from a free trial from www.adobe.com, and did not
really find a difference. Could you please explain to me what the difference is? And is
Dreamweaver really better than Frontpage?....
Help With Javascript
(3) Anybody want to point me to a good javascript tutorial. Thanks.....
Excellent Site For Javascript Tools
(8) This is the best source for Javascript tools. http://www.codebrain.com/ ....
Putting In Videos With Dreamweaver
Clicking a link and opening them (5) Ive been to numerous sites where people can click on a link and download a video. Maybe its
something very simple but idont know.... If someone could show me how do this using dreamweaver that
would be appreciated... also where would i upload the file too... bc its a video, so would it go in
just the public folder or in picture or what? plz tell me bc ive been wondering about this for a
while, same thing with a music download link, i suppose they are the same thx in advanced jon....
Dreamweaver Or Front Page Or Other?
which's more professional & user-friendly (108) Dreamweaver is founded by Macromedia and Front page is founded by Microsoft. Both are used for
creating websites. Personally, I am using Dreamweaver MX, it is very user friendly and have great
support towards other Macromedia softwares like Flash and Fireworks. How about you, what kind of
software do you use to build your web?....
What Program Do You Use To Design Your Web?
has another good than dreamweaver ? (226) I has use a lot all of macromedia suit like Dreamweaver ultradev4 , 4 , mx , mx2004. Is there
another good program to design website than macromedia dreamweaver? I just want to try other
software may be I will get a new idea and effect for my site. PS. don't try 2 answer microsoft
frontpage hehehe /biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /> ....
Javascript resources?
ie, a book. (-1)
Looking for put, javascript, css, dreamweaver
|
|
Searching Video's for put, javascript, css, dreamweaver
|
advertisement
|
|