Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8226179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:40:35+00:00 2026-06-07T15:40:35+00:00

why Dreaweaver highlight as RegExp what’s wrong with my code? $(this).attr({‘width’:this.width /2, ‘height’:this.height/ 2});

  • 0

why Dreaweaver highlight as RegExp what’s wrong with my code?

$(this).attr({'width':this.width /2, 'height':this.height/ 2});

its highlight from /2 to /2.

thank you

I used this code for <img/> tag I think its better use attr() instead of css()

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T15:40:37+00:00Added an answer on June 7, 2026 at 3:40 pm

    Why Dreaweaver highlight as RegExp?

    The regex highlighting has nothing to do with your code. It’s a major highlighting problem which has been present in DreamWeaver for as long as I’ve used it (DW CS5 – CS6).

    What’s wrong with my code?

    Object properties shouldn’t be quoted and I’m not sure if this.width and this.height return what you’re expecting. Also you shouldn’t use attributes for that, use .css() when you want to apply styling. HTML Attributes are deprecated for that.

    $(this).css({width: $(this).width()/2, height: $(this).height()/2});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed Dreamweaver and when I was downloading the dependent files from my website,
Apologies if this is a stupid question as Im completly new to JAvascript and
Since i am new in Phone app programming, this might be a silly question...
I am using Dreamweaver CS6 and I have attached the code below. I updated
Here is a function from Dreamweaver, if (($strUsers == ) && false) what the
I have Dreamweaver CS5, and used the Insert FLV function to generate a flash
In dreamweaver is there a way to scale a page down from 1000px wide
I'm moving to Dreamweaver from Notepad++, and while Dw does have many better features
I'm tired of Dreamweaver overwriting wrong files on the server, so I'm looking for
I am using DreamWeaver to code xHtml docs. in the program the code is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.