how can i include a css file for a module


function satya_test_module_init()
{
  drupal_add_css(
      drupal_get_path('module','satya_test_module')
             .'/css/tooltip.css');
  drupal_add_js(
      drupal_get_path('module','satya_test_module')
             .'/js/test.js');
  drupal_add_js(
      drupal_get_path('module','satya_test_module')
             .'/js/tooltip.js');
}

document.write('<img id="dhtmlpointer" 
src="/sites/all/modules/satya_test_module/js/arrow2.gif">')

By looking into the view source for your .js file or .css file and find its relative path. This is how I have got the relative path for my module.

Example: /sites/all/modules/satya_test_module


mymodule.info
mymodule.module

core = 7.x
name = Satya Test Module
description = Use this module to muck
version = "7.x-1.0"

scripts[] = file1.js
scripts[] = sub-dire/file2.js

stylesheets[all][] = file1.css
stylesheets[all][] = sub-dir/file2.css

The directory is relative to the module directory.